<hr>

<hr> - HTML/CSS - Programmation

Marsh Posté le 19-11-2004 à 11:17:17    

Salut,
quel est la meilleur solution pour faire un trait horizontal de 888px (par exemple) de large, 1px de haut et de couleur blanche.
J'ai essayé avec la balise <hr> mais il me met une marge au dessus en dessous que je n'arrive pas à enlever.
Merci


Message édité par kameha le 19-11-2004 à 11:17:39
Reply

Marsh Posté le 19-11-2004 à 11:17:17   

Reply

Marsh Posté le 19-11-2004 à 11:21:54    

border-bottom par exemple :)


---------------
www.polychromies.com (Portfolio) - www.photographier-bebe.com (livre photo de bébé) - www.alsacreations.com
Reply

Marsh Posté le 19-11-2004 à 11:21:57    

<hr style="margin:0; width:888px" />

Reply

Marsh Posté le 19-11-2004 à 11:28:36    

Merci mais j'ai mis ça:

.trait-menu  
{
margin:0;  
width:888px;
border-bottom:0;
border-top:0;
}


 
et j'ai toujours une marge ht+bas

Reply

Marsh Posté le 19-11-2004 à 11:30:08    

montre le reste de ton code...

Reply

Marsh Posté le 19-11-2004 à 11:31:18    

kameha a écrit :

Merci mais j'ai mis ça:
[...]
et j'ai toujours une marge ht+bas


 
il parlait du border-bottom à l'élément après lequel il doit y avoir une ligne je suppose, plutôt que d'utiliser un hr


Message édité par antp le 19-11-2004 à 11:31:33
Reply

Marsh Posté le 19-11-2004 à 11:31:28    

Voici une partie de mon code, là ou se trouve la balise <hr>:

<td><img src="images/i1.gif" width="266" height="80"></td>
          <td><img src="images/i3.jpg" width="238" height="80"></td>
          <td><img src="images/i5.jpg" width="61" height="80"></td>
          <td><img src="images/i6.jpg" width="108" height="80"></td>
          <td><img src="images/i8.gif" width="215" height="80"></td>
        </tr></table><hr style="trait-menu" />
      <table width="10" cellpadding="0" cellspacing="0">
        <tr>  
          <td><img src="images/pixel.gif" width="4" height="27"></td>

Reply

Marsh Posté le 19-11-2004 à 11:35:34    


  border: none;
  border-bottom: 1px solid red;
  height: 1px;
  width: 888px;


ça a l'air de marcher dans IE 6 & Mozilla 1.7


Message édité par antp le 19-11-2004 à 11:36:39
Reply

Marsh Posté le 19-11-2004 à 12:10:04    

padding de la barre à 0 + margins des tables à 0 aussi?


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
Reply

Marsh Posté le 22-11-2004 à 11:40:36    

La marge est normale. Il s'agit d'un bug IE : http://www.kbalertz.com/kb_883631.aspx
Même un margin / padding à zéro n'y fera rien.
 
Quelques solutions ici : http://forum.alsacreations.com/top [...] =4&tid=493


Message édité par sibelius le 22-11-2004 à 11:41:00

---------------
www.polychromies.com (Portfolio) - www.photographier-bebe.com (livre photo de bébé) - www.alsacreations.com
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed