Welcome to Dream.In.Code
Become an Expert!

Join 149,709 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,263 people online right now. Registration is fast and FREE... Join Now!




Background Image Problem

 
Reply to this topicStart new topic

Background Image Problem

haveacigar
3 Feb, 2007 - 02:04 PM
Post #1

New D.I.C Head
*

Joined: 3 Feb, 2007
Posts: 15


My Contributions
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 biggrin.gif
User is offlineProfile CardPM
+Quote Post

rockstar_
RE: Background Image Problem
3 Feb, 2007 - 10:51 PM
Post #2

D.I.C Head
Group Icon

Joined: 16 Oct, 2006
Posts: 187


Dream Kudos: 275
My Contributions
QUOTE(haveacigar @ 3 Feb, 2007 - 03:04 PM) *

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 biggrin.gif

Hm, I took a look at your site. What tools are you using to debug the Firefox problem? I took a look with Firefox 2.0 with the Web Developer and Firebug extensions. After inspecting the DOM, it appears as though your container class is tiny. When I investigated further, I noticed that it's because your #images and #content divs are floating, but they are floating oddly. It might be a good idea to add a div with clear:both in the style. Also, you might want to relatively position both of those divs as well.

Let me know if that works.

rockstar_
User is offlineProfile CardPM
+Quote Post

Arbitrator
RE: Background Image Problem
6 Feb, 2007 - 03:16 PM
Post #3

D.I.C Regular
Group Icon

Joined: 26 Jan, 2005
Posts: 492



Thanked: 2 times
My Contributions
I provided the solution to this question on a different forum. It appears that the relevant background image has been removed from his page since.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 04:26AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month