Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm wondering why does WordPress's default theme mix up the css measurement units?

For example:

.one-column.singular #author-info {
margin: 2.2em -8.8% 0;
padding: 20px 8.8%;}

Wouldn't be easier to understand and to work if all them were pixel based?

Thanks

share|improve this question
    
There is nothing wrong with having CSS use relative (%) and fixed(px) attributes. –  Wyck Apr 1 '12 at 16:13

1 Answer 1

up vote 2 down vote accepted

Its just a css thing... while the distance from the top object is
to remain permenant the distance from a side object is relative and
those changes (sometimes) as the screen resulotion changes..

That prevents smaller screens from having a broken site. Anyhow thats the old way to go about it (in a matter of speaking) since "Responsive website design"
is the modern way to control website fluidity...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.