score:1
Accepted answer
Try this - lose the min-height
change height: auto
.Todo {
border: 1px solid black;
margin: 10px;
width: 300px;
height: auto;
padding-left: 9px;
padding-bottom: 9px;
}
score:0
You need to remove the height from Todo.css(Todo class) and just keep the min-height
.Todo {
border: 1px solid black;
margin: 10px;
width: 300px;
min-height: 50px;
padding-left: 9px;
padding-bottom: 9px;
}
Source: stackoverflow.com
Related Query
- min-height pushes the content outside of div instead of growing inside div
- Animating change of content inside of the div with ReactJS
- React Router v6 : How to render multiple component inside and outside a div with the same path
- Change state of individual div (that is inside a map) instead of changing the state of all div's inside the map
- Get the height of the div instead of window
- Functional Component: Write functions inside or outside the component?
- How do I see state when logging to the console instead of Proxy object inside reducer action?
- How to hide the overflow content in material ui table cell instead of wrapping
- Making a scrollable div that encompasses the entire height of the PDF
- How to distinguish what caused rendering of React component: something from the inside or from the outside of the component?
- Why do Material UI tabs stop working when I use a .map to populate the content dynamically instead of hard coding?
- React: How to Animate Expanding and Collapsing Div When the Size of the Content is Not Knowable
- React: Getting the value of text inside a contentEditable div
- Unable to access the data from inside the For Loop from the outside of the For Loop
- How do you test the content of a div or other element in enzyme/mocha/chai?
- Make material UI drawer stay the same size, instead of resizing when content size changes
- React inaccurately calculating the height of a div on first page load
- How to set excelsheet row height to auto so that the content can autofit in the cell using exceljs
- How to make content scrollable inside a flex box without given the height?
- Is it possible declaring a variable inside the class and outside the method
- React - How to get height of the particular div if you know its class
- Changing height of div element by adding the number of items React.js
- React is rendering [Object object] instead of JSX elements inside the array
- In React a div has an height of a zero, then why its children are still showing on the screen
- What is the diferent about data that defined inside the state and outside state that create inside the constructor?
- I have a div with a onClick handler and also buttons inside with onClick events. How do I prevent the buttons from firing the div onclick?
- How to display the content of an array inside an object in Reactjs
- Reactjs - Toggle dropdown menu on click outside anywhere on page instead of just click on the icon
- How to border bottom the div content on click
- Is there a better way to ensure that a footer stays at the bottom of a scrollable div whose height is large enough to touch the bottom of the screen?
More Query from same tag
- subtotal not updating after qty change
- Multiple 'includes' within a function
- Jest test functions on select statements in React JS
- Using css property "transition: all", I add a dynamic class: (<div className={`${show ? "show" : "hide"}></div> ), but my animation doesn't work
- Cant move to right and left while in d flex
- Render a component in a specific section of page
- How to fix the data filter problem on onChange event in react.js
- Setting authorization header in axios
- how can I pass a useState props using TypeScript to a child component
- redux-thunk fetch parse response
- User authentication with ASP MVC and React
- ReactJS Axios pass data and upload image using Multer
- Is there a way to change the color of the layout in PopOver
- How to remove the chat value in array tab in react
- AppBar can not get theme with material-ui V5 (Bug or Change in v5????)
- P5js with next.js window is not defined even in useEffect
- How to test a React component with multiple child components?
- TypeError: crypto__WEBPACK_IMPORTED_MODULE_5__.generateKeyPairSync is not a function
- Passing Component as a prop
- Event in Child Component returns ' Uncaught TypeError: Cannot read property 'value' of undefined
- redux initialState - get total from other attributes
- Token is correct in frontend, but in the backend it's undefined
- How to get item from local storage?
- AXIOS Post stay on PENDING in my REACT application
- Change children state from parent component in React JS
- Redux+Websockets: Why manage this using middleware?
- react render not working with getElementById
- What is client side and server side in Next.js?
- Approch for use rtk query hook for sending request when ever params are exist not always?
- Overriding Card titleStyle and subtitleStyle not working in material-ui