CSS - Percentages or Pixels? -
I've been using CSS for many years, and I've always been a 'percent' type man, as I always define the heights and the width as opposed to pixels (for example, when setting things like margin, padding, etc. in which I use pixels).
I will do something like this:
body {height: 99%; Width: 99%; Margin-top: 10px; } But I often see such examples:
body {height: 300px; Width: 250px; Margin-top: 10px; } My question is: Is there any benefit to using one on another overall , and if so, what are they? Thank you.
Mick
itemprop = "text">
The mobile webpage is for Rock that it is (obviously ) Will adjust to suit.
However, when you want a certain width for an example, for example an article of text that you want to display in a certain way, then PX is the winner.
Both plus and minus other are :)
Comments
Post a Comment