user image

Joseph Morgan
Published in : 2021-10-20

min-height is not working on td or th

HTML & CSS

CSS Question, min-height is not working on td or th tags what should i do? 

td {
	min-height: 50px;
}
th {
	min-height: 50px; 
}

anyone can help please?

Comments

Mohamed Atef Date : 2021-10-20

Best answers

46

Best answers

46

min-height is not working with td or th, so you need to replace min-height with “height” and it will work like min-height , this is how table style works 

example 

td {
	height: 50px;
}
th {
	height: 50px; 
}

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

Can't move the background-image code from CSS file to HTML file.
Publish date: 2022-02-13 | Comments: 2

Tag: HTML & CSS

What is the need for using (for) attr in the label of an input tag?
Publish date: 2022-02-11 | Comments: 2

Tag: HTML & CSS

How to horizontally align to the centre a li inside an ul?
Publish date: 2022-03-04 | Comments: 2

Tag: HTML & CSS

Logo shrinks when resizing the browser
Publish date: 2022-02-10 | Comments: 2

Tag: HTML & CSS

Do I have to upload the sass files or just the CSS file?
Publish date: 2022-02-11 | Comments: 1

Tag: HTML & CSS

Sticky header goes behind the Images
Publish date: 2022-02-10 | Comments: 1

Tag: HTML & CSS

Is OOCSS still a good CSS architecture in 2022?
Publish date: 2022-02-08 | Comments: 2

Tag: HTML & CSS

How do custamize my button to give it a bubble look using CSS?
Publish date: 2022-03-04 | Comments: 0

Tag: HTML & CSS