Old 18-05-2005, 07:22   #1 (permalink)
SquishyB
Registered User
 
Join Date: May 2005
Posts: 1
Div Background Images

hey all,
i have a slight problem with background images for <divs>. IE works fine, and the site looks all sweet, but when veiwed in mozzila, the backroudn images arnt there. Is there some way to fix that. The website is
HTML Code:
http://squishyb.net
its just the genearl layout atm and no content yet.
Thanks for your help,
SquishyB
  Reply With Quote
Old 18-05-2005, 07:54   #2 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,527
Delete all the z-index values to see what's happening.


I would start again. The design is really simple, but you've got all kinds of css going on.
You only need one background image. Make a container div and stick the background in this - forget z-indexes. Then put your content (other divs if you need them) inside the container.

Have a look at floats and so much more...
  Reply With Quote
Old 18-05-2005, 07:55   #3 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,527
  Reply With Quote
Old 18-05-2005, 07:59   #4 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,045
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
You have negative z-index values.
Quote:
.bannerdiv {
z-index:-20;
position:absolute;
width:740px;
height:400px;
background-repeat:repeat-y;
background-image:url(images/topbanner.gif);
margin-left:54px;
display: block;

}
just use positive ones
Edit: oh, and what stickman said, too
  Reply With Quote
Old 18-05-2005, 08:18   #5 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Also, adding display: block; to a <div> is pointless, since <div>s are already block-level elements.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8