0
what is "50px" mean? what is the differents between 50px and 50%
10 Answers
+ 5
% - percent of the page
px - pixels
If you write <hr width=50% /> it will make a horizontal line with the width of 50% of the page.
If you write <hr width=50px> it will make a horizontal line with the width of 50 pixels.
P.S. If you don't understand something just try it in the code playground.
https://imgur.com/a/iTswR
- Dumitru
If this answer has helped you, give it a upvote by pressing the button that looks like an thumbs up (like).
+ 1
PX describes pixels
+ 1
there's a lot differents between them the 50px mean 50 pixels of your screen but 50% mean half of your screen try this to see the differents <hr width="50px/></p> and <hr width="50%"/></p>
0
50px is short form of 50 pixels. 50% means half of element container. If you try <body width="50%"></body> , your body element's width will be half of your browser window. So your element will have non-static size.
0
%- Percentage
Px- pixel
If you write <hr width="50%"\> it will make an horizontal line with width of 50% of the page.
If you write <hr width="50px"\> it will make an Horizontal line with width of 50px look smaller on the page.
Note; there is different between the 2 tags..
Hit the like button if it answer your question.
0
%- text written in horizontal in percentages w.r.t page
px- text written in number of pixel.
- 1
px and percents
if you have a 1000px size, 50% of this = 500px, right?
check the conclusion
- 5
there is no difference between 50px ans 50%,both results same try it yourself,it will be clear to you then
- 5
There is no difference.
- 6
no difference