Aller au contenu

positionnement float et absolute


Mado

Sujets conseillés

bonjour

on peut melanger ou y'a des risques que ca marche pas bien

comme par exemple ici

body {

font-family: verdana, arial, helvetica, sans-serif;

margin : 0;

padding: 0;

font-size : 100%;

color: #000000;

background-color: #ffffff

}

#conteneur {

text-align: center;

width : 90%;}

#bloc-centre {

margin : auto;

text-align:left;

}

#bloc-haut {

height : 30px;

}

#bloc_orange {

position : absolute;

top : 0;

left : 2px;

width : 169px;

height : 30px;

background-color : #ff8a00;

}

#bloc_rouge {

position : absolute;

top : 0;

left : 174px;

width : 81%;

height : 30px;

background-color : #Ad1a12;

}

#gauche {

float:left;

margin-top : 2px;

background: #FFF666;

width: 169px;

}

#droite {

margin-top: 2px;

background-color: #AD1A12;

height : 300px;

margin-left : 405px;

}

#milieu {

float : left;

margin-top: 2px;

margin-left : 5px;

background: #FF0000;

width: 231px;

}

#bloc-milieu {

position : absolute;

top : 355px;

left : 2px;

width : 400px;

height : 30px;

background-color : #Ad1a12;

}

merci

j'essaye de faire dans l'art de la css je ne sais si j'y parviens mais ......; j'essaye :D

marie ;)

si je commence mal merci de me dire ou :up:

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...