HighDots Forums  

CSS 'length' property info please?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss CSS 'length' property info please? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike Barnard
 
Posts: n/a

Default CSS 'length' property info please? - 03-02-2008 , 06:06 AM






Hi.

In a site I have set the height of a footer div to 4em. This doesn't
validate, therefore I *assume* that em is not a valid value. I will
change it, of course, but I want to learn the correct possible values.

Sorry! We found the following errors
URI : http://www.thermachek.com/temp/thermachekv2.css
181 #footer Value Error : height Parse Error - 4em

OK, so I went to http://www.w3schools.com/css/css_reference.asp to
read up. Under height is says the possible values are auto, length or
%.

So whats the definition of 'length'? Searching the site has brought up
nothing, so far. It must be there, but I can't find it. Can anyone
point out the px in what % of the site for em?

Thanks.

Reply With Quote
  #2  
Old   
Ben C
 
Posts: n/a

Default Re: CSS 'length' property info please? - 03-02-2008 , 06:13 AM






On 2008-03-02, Mike Barnard <m.barnard.trousers (AT) thunderin (DOT) co.uk> wrote:
Quote:
Hi.

In a site I have set the height of a footer div to 4em. This doesn't
validate, therefore I *assume* that em is not a valid value. I will
change it, of course, but I want to learn the correct possible values.

Sorry! We found the following errors
URI : http://www.thermachek.com/temp/thermachekv2.css
181 #footer Value Error : height Parse Error - 4em
You forgot the :. You wrote 'height 4em', not 'height: 4em'.

Quote:
OK, so I went to http://www.w3schools.com/css/css_reference.asp to
read up. Under height is says the possible values are auto, length or
%.

So whats the definition of 'length'? Searching the site has brought up
nothing, so far. It must be there, but I can't find it. Can anyone
point out the px in what % of the site for em?
An em is a perfectly good length unit, you jumped the wrong way.

Validators etc. can give slightly misleading error messages because
after all they're only non-human.

The main useful information is just "there's something wrong near line
181". Everything else take with a pinch of salt.


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.