+ 1
Height 100px and width 100% are equal
There are same
3 Respuestas
+ 5
No...one is pixel the other is percentage of visibility
https://kyleschaeffer.com/css-font-size-em-vs-px-vs-pt-vs-percent
+ 3
Only if your screen is 100 pixels wide. 100% will be every pixel wide the webpage takes up, and 100px will just be 100 of the however many pixels wide your screen is
+ 1
Block level elemens fill the width of their parent elements. So width 100% mean the total width of parent element. In case of <body> , it is width of the viewport