Forum Moderators: open
I put the line with the 90 arc in the banner image and then created a small image with the same color as the underline. Next, I absolutely positioned a div{with background: url()} to match up to the curve.
It looks good in IE, but Opera positions it about 5px too high and 10px to the left. Is there any way around this?
Also, the div doesn't even show in NN4. I checked, and the background image is supposed to be supported in NN.
Thanks in advance :)
IE, Opera and Netscape have different Margin widths. It could be that's what's messing you up. Try setting the margins to zero, then position everything relative to that. Then it should line up correctly on all platforms.
Good luck!
.banner
{
position: absolute;
border: none;
width: 600px;
height: 80px;
margin-left: 100px;
margin-top: 0px;
}
<added>Now the banner is aligned tight to the left in NN4 :0
I could still use some clarification on the difference of {margin-left and left}. Is that shorthand?
<added>Thanks, pageone
"The left property sets the physical distance of how far the left content edge of an element is to the right from the left content edge of the containing block."
Check this out:
[devguru.com...]