+ 3
What is difference between pixel and percentage in html
tell me
3 ответов
+ 9
Mobile webpages. %'s rock for that. As it will (obviously) adjust to suit.
However when you want a fixed width for say example an article of text that you want displayed in a certain way, px's is the winner.
Both have many plus's and minus's over each other :)
+ 4
I ll suggest also to take a look at vw and vh , it simplifies a lot of scaling issues in CSS for responsive designs.
% takes the allocated portion of available width/height
pixels as the name suggests , pixel by pixels
+ 1
tnx