PDA

Click to See Complete Forum and Search --> : div positioning problems



pea3698
01-17-2007, 01:26 AM
I'm having the good old browser problem. I have a verticle bar that I want positioned at 162px left. In ie it works great, in firefox there is a shift of about 3 -4 px toward the right. is there a way to get around this. A friend suggested adding _LEFT:162px but that didn't change anything.

code in header

#rule-1 {
position:absolute;
LEFT:162px;
}
code in body

<div id="rule-1">
<IMG SRC="images/short_horizontal_rule.gif">
</div>

pea3698
01-17-2007, 01:47 AM
Funny how it works out. After hours and hours of searching and trying this and that, I finally post on fk. So I say let me do one more search on google and BAM! there it bloody is.

My friggin div needed to be set bigger width wise. Sorry to have bothered you guys again.

worldstrider
01-29-2007, 07:08 AM
That was helpful anyway.

If you get a soultion to your own problem please post it--some of the rest of us might end up with the same question the next day!

pea3698
01-29-2007, 09:51 AM
All the things that they said helped out alot, but what helped out the most was going through my code and realizing that I had left one div open. That's why it took me so long to say what fixed it lol, cause I felt dumb. But, I guess it happens when you start nesting divs.