Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 12-02-2009, 08:54 AM   #1
Join Date: Jun 2009
Posts: 7
Question Background image not showing...

Hello again....

Okay, ive inserted a Div tag to act as my background image. I have sorted the Z indexes approprately i.e.

bgimagemain = 1
header = 2
body = 2
...you get the picture

Anyway, i assigned a CSS rule (bg_main) with the rule:

background-image: url(Images/bg_section.jpg);
background-repeat: repeat-y;
position: relative;
background-attachment: fixed;

It shows up great in Dreamweaver (using MX 2004), but wont show in I.E. 7....at all. Although if i set another Div with this CSS rule it shows?

I am at school so unable to test this probel with other browsers (i.e. Mozilla Firefox).

Anyone got any ideas ?
deadevil13 is offline   Reply With Quote
Old 12-02-2009, 11:20 AM   #2
Corrosive's Avatar
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103

I don't think z-index works with relative positioning. Re-think your approach to the build. I'd add background image to the body tag using CSS.

Last edited by Corrosive; 12-02-2009 at 12:12 PM..
Corrosive is offline   Reply With Quote
Old 12-02-2009, 04:16 PM   #3
domedia's Avatar
Join Date: Dec 2003
Posts: 9,730

Corrosive is right,z-index is not needed for creating a layout.
domedia is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 03:23 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com