% or em in Flexible Layout?
- From: Andrew <sorry.no.email@xxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 20:47:39 +1000
Hi,
I would be grateful for an answer to a question about flexible layout
for the following site:
http://www.pnc.com.au/~plstrong/strongs/index.html
The main content had margins set as:
#content
margin: 0em 4% 0em 12.5em;
in my belief that this would give a flexible right border to the main
content. The W3C Validator spat the dummy at this as it mixed fixed
and relative values, a warning rather than failing the CSS ('this is
not a robust style***'). So I altered the CSS to the current:
#content
margin: 0em /*4%*/ 2em 0em 12.5em;
and the effect of flexibile design at all screen resolutions remains +
W3C validator is happier.Is it actually the body margin rules that
maintain this flexible design rather than my ignorant use of the %??
Thanks for anybody who can clear this up for me!
Andrew.
--
Andrew
http://people.aapt.net.au/~adjlstrong/
.
- Follow-Ups:
- Re: % or em in Flexible Layout?
- From: Neredbojias
- Re: % or em in Flexible Layout?
- From: Andy Dingley <dingbat@xxxxxxxxxxxxxx>
- Re: % or em in Flexible Layout?
- Prev by Date: Re: CSS question for <form> margin
- Next by Date: Re: post method
- Previous by thread: CSS question for <form> margin
- Next by thread: Re: % or em in Flexible Layout?
- Index(es):