Introduction

Les feuilles de style

Le positionnement du contenu

Les fontes downloadables

Conclusion et exemples sur le Net

 

UTILISATION DE CSS POUR DEFINIR LA POSITION DU CONTENU

Dans l'exemple suivant, on va définir un style pour deux couches ou "layers". Un style pour une couche inclut toujours une "position" (absolue ou relative).

 

<STYLE TYPE:"text/css">

<!--

#layer1 {position: absolute;

top: 20px; left: 5px;

background-color: #CC00EE;

border-width:1; border-color: #CC00EE;

width: 200px;

}

#layer2 {position: absolute;

top: 60px; left: 250px;

background-color: white;

width: 200px

border-width: 2px; border-color: white;

}

--> </STYLE>

haut de la page

retour page travaux

Catherine Roulet - juin '99