Grow your CSS skills. Land your dream job.

Nav and jpeg

  • # March 21, 2009 at 11:10 am

    Hi,

    I’ve got a problem with my jpeg and my nav buttons.
    I just followed the instructions of one of the videos, so its probably very easy to solve:

    The problem is the difference between firerefox and IE

    In firefox my jpeg doesn’s even show
    The jpeg is supposed to be filling just a page. But its centered to much to the right
    The nav buttons also react different to padding left in firefox and IE

    See pics

    My Body :

    My CSS:

    Code:
    * {
    margin:0;
    padding:0;
    }

    body {
    font-size:62,5%;
    font-family: Helvetica, sans-serif;
    background: #ffffff;
    }

    li {
    font-size: 1.0em;
    }

    div#page-wrap{
    width: 800px;
    margin: 0 auto;
    }

    ul#nav {
    height: 534px; width: 1144px;
    background: url(pics/Header 1.jpg) no-repeat;
    list-style: none;
    padding-left: 150px;
    }
    ul#nav li {
    float: left;
    margin-top: 300px;
    }

    ul#nav li a {
    display: block;
    width: 125px;
    color: black;
    font-weight: bold;
    text-decoration: none;
    }
    ul#nav li a:hover, ul#nav li a:active {
    color: #CCCCCC;
    }

    Hope you guys can help out

    Matt

    # March 21, 2009 at 11:30 am

    You have a page wrap that is 800px wide and inside that is your ul which is 1144px wide + 150px padding.

    See the problem?

    # March 25, 2009 at 11:52 am

    Oke, that solved of the problems, thanks very much!

    But i’m still not able to see my image in firefox.
    How is that possible?

    Matt

    # March 25, 2009 at 12:03 pm

    Without a link I can only guess. Try re-naming your image, instead of "Header 1.jpg" change it to "header_1.jpg" and then update your CSS.

    # March 27, 2009 at 11:40 am

    That problem solved as well

    thanks! :)

    Matt

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".