Aller au contenu

ccs layer bakround color


jul

Sujets conseillés

si quelqu'un peut m'aider voici mon problème comment je peut y remédier

La propriété CSS layer-background-color n'est pas prise en charge

Netscape Navigator 4.0, Netscape Navigator 6.0, Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0

ligne 110 <div id="Layer1" style="position:absolute; left:164px; top:316px; height:651px; z-index:1; overflow: visible; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">

merci

Lien vers le commentaire
Partager sur d’autres sites

"layer-background-color" n'est pas une propriété CSS1/2, mais une rustine inventée pour Netscape 4.x

A ne pas utiliser, donc. C'est hors d'âge et non standard. Seul l'antique Netscape 4.x le comprendra, et encore, avec de la chance.

Voir :

http://www.blooberry.com/indexdot/css/prop...bg/lbgcolor.htm

This value sets the background-color for the entire region of the current element. This proprietary property behaves in Netscape the way the 'background-color' property SHOULD behave, while the actual 'background-color' behavior is buggy in this regard. This property was invented to create the correct behavior.

The 'background-color' property only covers the content area of an element's rendering box, and if a border is also used, there is a slight gap (2-3 pixels) between the 'background-color' and the border area, where the background-color of the parent element shines through.

The 'layer-background-color' covers the whole region specified by the element, including the gap area occurring for the 'background-color' property, and the entire dimension of the element specified by the 'width' and 'height' properties. Since this property is only understood by Netscape, and it fixes other buggy behavior, specifying both this and the 'background-color' property with the same value seems like a good idea.

Sinon, je ne suis franchement pas en forme ce matin, mais j'ai du mal à comprendre :

border: 1px none #000000;

Il y a un "none" qui va pas si on veut voir une bordure, non ? Un "solid", un "dotted", un "dashed" ou autre serait plus mieux, non ?

Ou alors il faut vraiment que j'aille dormir...

Modifié par LaurentDenis
Lien vers le commentaire
Partager sur d’autres sites

merci pour le none c que je voulais essaye sans bordure

en fait ce que je veux c mettre un fond dans mon calque et si je met une couleur dans les propriété, arrière plan ca me cré ca.alors comment dois je faire??

merci

<edit=dan: merci de respecter les règles du forum et d'éviter le langage SMS>

Lien vers le commentaire
Partager sur d’autres sites

Il y a un "none" qui va pas si on veut voir une bordure, non ? Un "solid", un "dotted", un "dashed" ou autre serait plus mieux, non ?

Ou alors il faut vraiment que j'aille dormir...

Laurent, sur le principe, t'as raison, (pas sur le fait d'être fatigué ;) , mais sur l'utilité de la chose). Mais en fait, il m'arrive d'utiliser ce procédé lorsque je veux définir un calque qui a les mêmes propriétés et exactement les mêmes dimensions qu'un autre qui lui, est, vraiment bordé, cela permet d'assurer une meilleure compatibilité à l'affichage dans les différents navigateurs.

Ceci dit, c'est vrai qu'il vaut mieux essayer d'éviter de procéder ainsi.

Dino

Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...