PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.CSS > CSS 'length' property info please?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
CSS 'length' property info please?

Réponse
 
LinkBack Outils de la discussion
Vieux 02/03/2008, 13h06   #1
Mike Barnard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut CSS 'length' property info please?

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.
  Réponse avec citation
Vieux 02/03/2008, 13h13   #2
Ben C
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: CSS 'length' property info please?

On 2008-03-02, Mike Barnard <m.barnard.trousers@thunderin.co.uk> wrote:
> 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'.

> 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.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h49.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15035 seconds with 10 queries