Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 17

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Mambo 4.5.1 > Mambo 4.5.1 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 02.03.2005, 11:21   #1 (permalink)
Junior Mamber
 
Join Date: Oct 2004
Posts: 33
gilahacker is on a distinguished road
Default make background images on divs show up in Firefox

I'm starting a new mambo based website (this is my 2nd mambo site) and I used the tutorial from allmambo.com to do the template and it looks fine in Internet Explorer, but the background images on my div's aren't showing up in Firefox, I just get empty boxes.

it should display one "main" div that's 100% wide, 100px high, with a repeating background image. Inside this div are two other divs (both floated left) with their own background images (both also 100px high).

Works in IE, Firefox gives me a 100% x 100px empty box. I tried the css in the html, then seperated it. Tried taking off the floats, tried floating the parent div, nothing, nada, zip, zilch, zero change. Always works in IE, never in Firefox.

the demo site from the allmambo.com tutorial has the same problem: http://demo.allmambo.com/index.php?m...te=my_template

they're using tables, I'm using divs but we've both got the same problem.

ok, I'm gonna have to post the code so it makes sense:

html:
Code:
<div class="topsection">
	<div class="topleft"></div>
	<div class="toplogo"></div>
</div>
css:
Code:
.topsection
{
 width:100%;
 height:100px;
 background: url(/templates/articleblast!/images/top.png) repeat-x;
}

.topleft
{
 width:150px;
 height:100px;
 background-image:url(/templates/articleblast!/images/top_left.png);
 float:left;
}

.toplogo
{
 width:362px;
 height:100px;
 background-image:url(/templates/articleblast!/images/logo.png);
 float:left;
}
Thanks in advance for any suggestions/advice!

-Jason
www.gilahacker.com (currently under development)
gilahacker is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 02.03.2005, 22:43   #2 (permalink)
Junior Mamber
 
Join Date: Oct 2004
Posts: 33
gilahacker is on a distinguished road
Default Re: make background images on divs show up in Firefox

NEVERMIND...

I have the Firefox "web developer" toolbar installed and somehow had "Page Colors" disabled.

Re-enabled it, and voila! It works like it should.

Geez I feel stupid now.

:-P

-Jason
www.gilahacker.com
gilahacker is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.03.2005, 18:31   #3 (permalink)
Junior Mamber
 
Join Date: Aug 2004
Posts: 47
trooper is on a distinguished road
Default Re: make background images on divs show up in Firefox

i double checked averything in Firefox and IE and in CSS code, even copied your own code as listed here and made a test page...

NOT WORKING FOR ME !

i just can't insert a background image in my template and even in a simple HTML file.

Do i have to change something in the <HEAD> code for transitional to something different ?

I see a ton of websites explaining how to put a bg image in a DIV , i even have a very very good book (CSS ref. guide, latest ed. ) and i copied the coding and not working... man i am desperate...

can someone help me plz?


test page... simple but for testing
http://www.go-dezign.com/atv/toto.htm


thanks for your help
trooper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.03.2005, 23:49   #4 (permalink)
Junior Mamber
 
Join Date: Oct 2004
Posts: 33
gilahacker is on a distinguished road
Default Re: make background images on divs show up in Firefox

ok, your first image (defined by css in the html file) works for me in IE but not firefox, your second image (defined in the external css file) doesn't work in either.

lets try something...

add "font-weight:bold" to your list of properties in the external css file... this will tell us if the css file is being loaded correctly. (if the font for the second line shows up bold then it's working...)

put a slash "/" in front of your url (not "../", just "/") for your first line (in the internal css), this might fix the first one for firefox...

remove the ".." at the beginning of your url for the second line (in the external css file) just for kicks... see what happens...

if all else fails, try absolute paths to your images. I.E. http://www.go-dezign.com/atv/images/main_navfill.png

I have a feeling that the ".." is killing the background for the second line because it's trying to look a level too high, even though the css file is in a lower directory, the parent html file calling it is not and I'm thinking that the path is relative to the location of the parent file.

Note: I could be wrong, but this is my best guess right now...

-Jason
www.gilahacker.com (under MAJOR construction)
gilahacker is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Designunterschiede IE vs FireFox alexbeer Mambo 4.5 Allgemein 3 15.01.2005 12:20
Solarflare menu 'flashes' while loading background images divamissx Template Discussions 7 02.01.2005 18:59
Can't figure out why the images won't show in my local server stracken Template Discussions 1 10.09.2004 08:02
Images wont show in news boom Mambo 4.5 'How Do I' Questions 0 23.07.2004 23:21
Set different background images for different content pages ? desi_style Mambo 4.5 'How Do I' Questions 1 08.06.2004 06:36


All times are GMT +2. The time now is 14:55.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.