Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2911 connectés 

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

<hr>

n°902667
kameha
Posté le 19-11-2004 à 11:17:17  profilanswer
 

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
mood
Publicité
Posté le 19-11-2004 à 11:17:17  profilanswer
 

n°902672
sibelius
Vous êtes sûr ?
Posté le 19-11-2004 à 11:21:54  profilanswer
 

border-bottom par exemple :)


---------------
www.polychromies.com (Portfolio) - www.photographier-bebe.com (livre photo de bébé) - www.alsacreations.com
n°902673
Profil sup​primé
Posté le 19-11-2004 à 11:21:57  answer
 

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

n°902675
kameha
Posté le 19-11-2004 à 11:28:36  profilanswer
 

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

n°902676
gizmo
Posté le 19-11-2004 à 11:30:08  profilanswer
 

montre le reste de ton code...

n°902678
antp
Super Administrateur
Champion des excuses bidons
Posté le 19-11-2004 à 11:31:18  profilanswer
 

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
n°902680
kameha
Posté le 19-11-2004 à 11:31:28  profilanswer
 

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>

n°902683
antp
Super Administrateur
Champion des excuses bidons
Posté le 19-11-2004 à 11:35:34  profilanswer
 


  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
n°902714
masklinn
í dag viðrar vel til loftárása
Posté le 19-11-2004 à 12:10:04  profilanswer
 

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?
n°904570
sibelius
Vous êtes sûr ?
Posté le 22-11-2004 à 11:40:36  profilanswer
 

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

Aller à :
Ajouter une réponse
 

Sujets relatifs
Plus de sujets relatifs à : <hr>


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)