1

CSS height property

 3 years ago
source link: https://dev.to/onyebuchidaniel60/css-height-property-2jel
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

CSS height property

Aug 11

・1 min read

Sorry this is a dumb question but why does the height property not apply to an element when you make use of percentage relative units. Example, if you have a div element and apply a CSS rule div{width:25%;height:25%;}, the width declaration applies to the div element but the height doesn't.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK