Whats the difference between pixel (pxs) and percentage (%) in html and css. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Whats the difference between pixel (pxs) and percentage (%) in html and css.

Am always confused when using these two things pxs an %.. I dont clearly know their differences whenever applying them in CSS and html.. Please I need your help programmers.

21st Jan 2017, 11:33 AM
Wakabi Brian
Wakabi Brian - avatar
3 Answers
+ 3
Are you kidding me... Let's say your device width is 400px. Using width: 50% is equivalent to width: 200px.
21st Jan 2017, 11:56 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 1
Um your screen support 100px? So you confuse?
21st Jan 2017, 1:05 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
0
thax Cheeze
26th Jan 2017, 5:12 PM
Wakabi Brian
Wakabi Brian - avatar