0

what is "50px" mean? what is the differents between 50px and 50%

8th Aug 2016, 1:09 AM
Saitharsan
10 Respostas
+ 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).
10th Aug 2016, 10:35 AM
Dumitru Comarnitchi
Dumitru Comarnitchi - avatar
+ 1
PX describes pixels
8th Aug 2016, 8:57 AM
sreehari chowdary
sreehari chowdary - avatar
+ 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>
9th Aug 2016, 6:52 AM
Mahdi
Mahdi - avatar
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.
9th Aug 2016, 7:06 PM
Bekir Uzun
Bekir Uzun - avatar
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.
13th Aug 2016, 8:20 AM
Agboola Lateef
0
%- text written in horizontal in percentages w.r.t page px- text written in number of pixel.
18th Sep 2016, 6:33 AM
Avtish Kakadiya
Avtish Kakadiya - avatar
- 1
px and percents if you have a 1000px size, 50% of this = 500px, right? check the conclusion
8th Aug 2016, 3:10 AM
Игорь Шин
Игорь Шин - avatar
- 5
there is no difference between 50px ans 50%,both results same try it yourself,it will be clear to you then
8th Aug 2016, 3:24 AM
Parikshit
Parikshit - avatar
- 5
There is no difference.
10th Aug 2016, 11:22 PM
Melnraksts (Melnraksts)
Melnraksts (Melnraksts) - avatar
- 6
no difference
8th Aug 2016, 2:57 PM
Pruthviraj Mane
Pruthviraj Mane - avatar