PDA

View Full Version : Height Issue



cwstech
10-10-2007, 03:14 PM
I'm having an issue with height in one of my div tags.

I'm trying to create a line-break basically. This is the code I am using.

.spacer
{
background: url(images/line_bg.gif) #003d5c repeat-x bottom right;
width: 710px;
height: 1px;
}

In Firefox it shows up great but not in Internet explorer. It shows up a lot thicker.

Here is the site

http://www.fellowshipse.com

Can someone please help me

thanks.

jc_gmk
10-10-2007, 03:29 PM
You could use a <hr /> instead of the div.

but if you want to use the div then I think either
line-height:1px;
or
font-size:1px;
will solve your problem :)

boogyman
10-10-2007, 03:34 PM
element {
display: block;
}

if all you are trying to do is create a linebreak, use the code above.
that will force whatever element to display on its own line.

cwstech
10-10-2007, 03:44 PM
You could use a <hr /> instead of the div.

but if you want to use the div then I think either
line-height:1px;
or
font-size:1px;
will solve your problem :)

using the font size worked for me. Thanks a lot.