Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-03-2007, 07:43 PM   PM User | #1
haveacigar
New Coder

 
Join Date: Aug 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
haveacigar is an unknown quantity at this point
Background Image Problem

Hey, I am having a problem with a background image. It works fine in ie but doesnt show up in firefox. The thing is the quadbike in the right hand corner
( http://www.alanmonger.co.uk/keypitts )

Here is the css
Code:
/* CSS Document */

a	{
		color:#000066;
		text-decoration:none;
		font-size:1.4em;
	}
a:hover
	{
		color:#009900;
	}
#container
	{
		width:775px;
		position:relative;
		background:url("images/quad.jpg") no-repeat bottom right;
	}
#images
	{
		float:right;
		margin: 0 10px 0 10px;
		width:320px;
		height:auto;
		border-style:solid;
		border-width:1px;
		margin-top:5px;
	}
#content
	{
		width:425px;
		float:left;
		border-left:solid;
		border-width:1px;
		border-color:#999999;
		padding-left:5px;

	}
#header
	{
		width:775px;
		background-color:#ffffff;
		margin-bottom:15px;
	}
a img
	{
		border:none;
		display:block;
	}
Thanks for any help
haveacigar is offline   Reply With Quote
Old 02-03-2007, 09:07 PM   PM User | #2
haveacigar
New Coder

 
Join Date: Aug 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
haveacigar is an unknown quantity at this point
anybody?
haveacigar is offline   Reply With Quote
Old 02-03-2007, 09:17 PM   PM User | #3
drippin
New Coder

 
Join Date: Feb 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
drippin is an unknown quantity at this point
try using this instead:

#container
{
width:775px;
position:relative;
background-image:url("images/quad.jpg");
background-repeat:no-repeat;
}

see if that works.
drippin is offline   Reply With Quote
Old 02-03-2007, 09:20 PM   PM User | #4
haveacigar
New Coder

 
Join Date: Aug 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
haveacigar is an unknown quantity at this point
Unfortunately not... but thanks anyway.

I dont know why but i am also unable to change the color..
haveacigar is offline   Reply With Quote
Old 02-03-2007, 09:30 PM   PM User | #5
drippin
New Coder

 
Join Date: Feb 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
drippin is an unknown quantity at this point
hmmm ok, last suggestion...

#container
{
visibility:visible;
position:absolute;
width:900px;
top:12px;
left:12px;
height:200px;
background-image: url(/images/quad.jpg);
background-repeat:no-repeat;
}


Im guessing you know what to do with Width, Top, Left and height?
drippin is offline   Reply With Quote
Old 02-03-2007, 09:52 PM   PM User | #6
haveacigar
New Coder

 
Join Date: Aug 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
haveacigar is an unknown quantity at this point
Still no i dont know why its not working properly in ff but perfectly in ie
haveacigar is offline   Reply With Quote
Old 02-03-2007, 10:53 PM   PM User | #7
drippin
New Coder

 
Join Date: Feb 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
drippin is an unknown quantity at this point
hmmm strange... i my experience its usually the other way around.
When you say "not working properly" is it actually showing something? or is the div not displaying at all? Im guessing container is a div anyway...
drippin is offline   Reply With Quote
Old 02-04-2007, 01:59 AM   PM User | #8
Shoot2Kill
Regular Coder

 
Join Date: Oct 2006
Posts: 181
Thanks: 1
Thanked 6 Times in 6 Posts
Shoot2Kill is an unknown quantity at this point
i am not sure of the problem, but having no positioning on header div, and with it being same width as container, could the header be blocking the quad background image.. ??
__________________
Quote:
Originally Posted by Excavator
write it for firefox then hack it for IE
Shoot2Kill is offline   Reply With Quote
Old 02-04-2007, 02:52 AM   PM User | #9
drippin
New Coder

 
Join Date: Feb 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
drippin is an unknown quantity at this point
It could be, but if he's used TOP to plot where the div is, there should be no reason its blockin it... but thats if they've used TOP.

They could always use Z-index to force the container infront i suppose.

hmmm, maybe adding. Z-index:10; could do the trick, but personally i dont really use Z-index that much, so im not sure about this.
drippin is offline   Reply With Quote
Old 02-04-2007, 03:49 AM   PM User | #10
Arbitrator
Senior Coder

 
Arbitrator's Avatar
 
Join Date: Mar 2006
Location: Splendora, Texas, United States of America
Posts: 2,900
Thanks: 5
Thanked 188 Times in 185 Posts
Arbitrator is on a distinguished road
You need to clear your floats: div#container { overflow: auto; }.

Quote:
Originally Posted by haveacigar View Post
i dont know why its not working properly in ff but perfectly in ie
This is actually a flaw in Internet Explorer’s float model, not the other way around.
__________________
Please for the love of god stop making IE. You current "browser"s cause me to cry every day. —Phil *
Arbitrator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 03:32 PM.


Advertisement
Log in to turn off these ads.