Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

respect de margin[-right bottom]

2 réponses
Avatar
yvon.thoravalNO-SPAM
j'ai une div :

div#content {position: absolute; color: #BAA; background: #22232F; font:
13px Verdana, sans-serif;
padding: 10px; border: solid 5px #444; z-index: 50;
/* top 50px; right: 25px; left: 161px;*/
/*margin-top: 45px;*/
/*margin-right: 25px;*/
/*margin-bottom: 65px;*/
/*margin-left: 161px;*/
margin: 50px 25px 65px 161px;
/*width: auto;*/
}

les /*...*/ marquent mes # ESSAIS...

J'aimerais absolument avoir une margin-bottom de 65px mais ca ne marche
ni sur safari 1.1 ni sur mozilla 1.6b

la marge est tjs à 0 ... qu'est-ce qui peut interférer ?

j'ai aussi :

body {position: relative; background: black; margin: 0; padding: 0;
color: #FFC;}

mais enlever margin: 0 dans body ne change rien.



--
yt

2 réponses

Avatar
Bruno Patri
Yvon Thoraval a écrit :
j'ai une div :

div#content {position: absolute; color: #BAA; background: #22232F; font:
13px Verdana, sans-serif;
padding: 10px; border: solid 5px #444; z-index: 50;
/* top 50px; right: 25px; left: 161px;*/
/*margin-top: 45px;*/
/*margin-right: 25px;*/
/*margin-bottom: 65px;*/
/*margin-left: 161px;*/
margin: 50px 25px 65px 161px;
/*width: auto;*/
}




Pas avec position:absolute, soit ton div est en position absolue et tu
définit top,left, right, bottom, doit tu definit les marges.

--
Bruno
Avatar
yvon.thoravalNO-SPAM
Bruno Patri wrote:


Pas avec position:absolute, soit ton div est en position absolue et tu
définit top,left, right, bottom, doit tu definit les marges.



OK, merci, c'est rectifié et sa roule...
--
yt