Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<hr> not showing

Tags:

html

css

I have a <hr> which isn't showing.

HTML:

<div id="line"><hr /></div> 

CSS:

hr {     border: 0;     width: 96%;     color: #FFFF00;     height: 1px; }   #line {     float: left;     width: 731px;     height: 10px; } 

Any ideas why it's not showing?

like image 327
TeaDrinkingGeek Avatar asked Sep 28 '12 12:09

TeaDrinkingGeek


1 Answers

try this code :

hr {   border: 0;   clear:both;   display:block;   width: 96%;                  background-color:#FFFF00;   height: 1px; } 

JSFiddle link http://jsfiddle.net/EXXrB/

Hope it will help you to resolve your problem.

like image 145
pkachhia Avatar answered Sep 25 '22 04:09

pkachhia