I am having problems with Firefox and IE7 to align a fixed background image to the top left corner of a scrolling text div.
Here is the webpsge in question:
http://bandvlaw.cgsart.com/site2/bratcher.html
Here is my css for that particular div:
Code:
.content {
position: absolute;
margin-top: 130px;
margin-left: 201px;
padding-top: 10px;
padding-right: 5px;
width: 552px;
height: 445px;
overflow: auto;
background-image: url(images/background.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
}
Now this works perfectly in IE6, but not Firefox of IE7. In those, the image is fixed, but the alignment is to the explorer window, not the div. So in average sized screens, you only see the bottom right of the photo.
If i remove the attachment: fixed, Firefox is fine, background sits right and doesn't scroll. Both IE6 & 7 they sit right, and they scroll.
I'm at a loss.
Also, as an added bonus on that same div, in Firefox the text rolls right out below the div, and slightly to the right. Were as IE6 & 7 it doesn't. That div is set to 552px x 445px, which is the exact size of the image. I can't for the life of me figure out why that is either. Same code as above for that div.
Any help is appreciated! Thanks!
Last edited by cruizer; 08-14-2008 at 09:17 PM..
|