I'm trying to get a div that has a horizontal line down the center half way from top to bottom.
Limited to text, this is sort of a sketch:
[----[Menu][Menu][Menu]-----]
Any thoughts other than a graphic?
Thanks, - Ryan
Harvs
10:22 am on Feb 3, 2005 (gmt 0)
I can't be done with just CSS code. The only way you can do it would be with a graphic. You could set the graphic as the background image so it won't interact with any text that goes over the top of it.
Nutter
6:19 pm on Feb 3, 2005 (gmt 0)
Thanks, that's what I'd already done. Just hoping there was a CSS way. It'd be much easier to change colors that way.
- Ryan
pittypatter
12:55 am on Feb 7, 2005 (gmt 0)
Hi, don't know if this is what you are refering too, but here is what I came up with. <style> <--! #line2 {position: absolute; left: 10px; top: 310px; width:250px; line-height: .2em; background-color: #0000FF;} <-- </style
<div id="line2"> </div>
Hope this helps.
Nutter
2:17 am on Feb 7, 2005 (gmt 0)
Thanks, but I just kept it as what I had: a 20px by 1px graphic that repeat-x's. Works pretty well.