Horizontal rule with CSS
Solved
tipi75
Posted messages
723
Status
Membre
-
alainpre -
alainpre -
Hello,
I can't seem to create a horizontal line with CSS.
Thank you for your help
I can't seem to create a horizontal line with CSS.
Thank you for your help
Configuration: Windows XP Firefox 3.5.2
It should read id instead of class
<div id="trait_dessus"><hr></div> <div id="trait_dessus"><hr></div> Here is the CSS code: #trait_dessus { border-top: 1px solid #000; width : 700px; }and remove your hr you don't need it
You need to write :
.trait_dessus { border-top: 1px solid #000; width : 700px; }