Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > % or em in Flexible Layout?

Reply
Thread Tools

% or em in Flexible Layout?

 
 
Andrew
Guest
Posts: n/a
 
      06-28-2006
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 stylesheet'). 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/
 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      06-28-2006
Andrew wrote:
> The W3C Validator spat the dummy at this


The W3C CSS validator isn't particularly impressive.

In general, pretty much all of its warnings may be safely ignored,
provided you "know what you're doing" and you've chosen that code
deliberately. It assumes a very dumb level of understanding by the
developer.

 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      06-28-2006
To further the education of mankind, Andrew <sorry.no.email@post_NG.com>
vouchsafed:

> Thanks for anybody who can clear this up for me!


Try:

line-height:2;

Then try:

line-height:2.0;

Hehehe <evil grin>.

--
Neredbojias
Infinity has its limits.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler error occurred when try to use a flexible template expression in preprocessor definesCompiler error occurred when try to use a flexible template expression in preprocessor defines snnn C++ 6 03-14-2005 04:09 PM
Flexible UI Ed ASP .Net 1 12-15-2004 04:29 PM
TemplateContainer attribute - Flexible? cosine... zero ASP .Net 1 06-23-2004 10:04 AM
More flexible programs for the design of a page =?Utf-8?B?RGV2aW4=?= ASP .Net 8 06-01-2004 09:38 PM
Flexible provider with ASP.NET for private use (Email etc.) Olav ASP .Net 1 07-31-2003 08:40 PM



Advertisments