Anchoring DIV BG in IE. |
Anchoring DIV BG in IE. |
| *Azarel* |
Aug 5 2006, 06:18 AM
Post
#1
|
|
Guest |
I'm fairly proficient with html/css, and I was wondering if there was any way to anchor a div background in Internet Explorer.
The layout looks perfectly fine in Firefox, but in Internet Explorer, the background scrolls with the div layer. I'd like to fix the background into the div layer so that it doesn't scroll, and I'm becoming really redundant now. Thanks in advance. |
|
|
|
![]() |
Aug 5 2006, 10:26 AM
Post
#2
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
The fixed property is ineffective in IE? Etto... Well, this only works in IE. If you were gonna stick it in a stylesheet, You could <!--[if IE]> it? -shrug- My brain is dying for oversleep.
[ http://www.xanga.com/rhythmsicle ] CODE <div style="background-color: #99CC66; background-image: url(); background-position: top right; background-repeat: no-repeat; background-attachment: fixed; width: 725px; height: 350px; overflow: auto;">
|
|
|
|
| *Azarel* |
Aug 5 2006, 02:21 PM
Post
#3
|
|
Guest |
I tried fixing the div background, but by specifiying a background-position, it becomes misaligned in both firefox and IE. :|
Also, I want this to be a centered layout and not a left-aligned layout just because it looks better, so I can't just define an absolute position for the bg. :( |
|
|
|
| *digital.fragrance* |
Aug 5 2006, 04:26 PM
Post
#4
|
|
Guest |
Try anchoring the image inside the div - no css or style coding. Then put !important after the margin numbers. That ought to help
|
|
|
|
| *Azarel* |
Aug 8 2006, 12:27 AM
Post
#5
|
|
Guest |
Meh, I couldn't figure it out, and I was told by some people as well as a couple sites that IE doesn't support anchored div backgrounds, so yeah.. you can close this. Thanks anyway! :)
(I just ended up tiling the bg vertically..) |
|
|
|
| *digital.fragrance* |
Aug 8 2006, 12:55 PM
Post
#6
|
|
Guest |
Okie dokie
Topic Closed |
|
|
|
![]() ![]() |