Grow your CSS skills. Land your dream job.

Problems Css Nav align, background

  • # July 1, 2009 at 6:22 pm

    I am having a few issues.

    My first site. http://www.leadertours.ca

    My footer text isn’t showing up the bottom and my background doesn’t fill the whole page. My nav isn’t working the correct way. The home page is on its active state on all the pages. I tried the user the tutorial from another site for large background and it didnt work.

    here is my css:

    Code:
    body {
    padding: 0;
    margin: 0;
    [color=#404000]background: #072e66 url(images/wdw-bg.jpg) no-repeat center top;[/color]
    color: #333333;
    font-family: Helvetica, sans-serif;
    font-size: 65.5%;
    }
    #top-nav{
    margin:0 auto;
    position:relative;
    right:22px;
    top: 187px;
    width:800px;}

    ul#nav{
    list-style-image:none;
    list-style-position:outside;
    list-style-type:none;
    margin: 0 auto;
    width:685px;

    }

    ul#nav li {
    display: block;
    }

    ul#nav li a {
    display: block;
    height: 50px;
    text-indent:-9099px;
    float:left;
    }

    ul#nav li.home a {
    width:171px;
    background:url(images/nav-home.jpg) bottom center no-repeat;}

    ul#nav li.about a {width:172px;
    background:url(images/nav-about.jpg) bottom center no-repeat;}

    ul#nav li.group a {width:168px;
    background:url(images/nav-group.jpg) bottom center no-repeat;}

    ul#nav li.contact a {width:174px;
    background:url(images/nav-contact.jpg) bottom center no-repeat;}

    ul#nav li a:hover {
    background-position: center center;
    }

    #footer {
    color: #FFF;
    text-align:center;
    font-weight:bold;
    padding: 10px 0 10px 0;
    text-transform: uppercase;

    }

    html:

    Code:

    Second site. http://www.greatsoutherngroup.ca

    css:

    Code:
    ul#nav {
    height: 236px;
    background: url(images/header-bg.jpg) no-repeat;
    list-style: none;
    padding-left: 73px;
    }

    ul#nav li {
    display: inline;
    font-size: 1.3em;
    }

    ul#nav li a {
    display: block;
    width: 132px;
    float: left;
    margin-top: 172px;
    color: white;
    padding-top: 4px;
    font-weight: normal;
    text-decoration: none;
    }

    html:

    Code:

    The navigation isn’t evenly spread out between international travel and contact, and I am not sure how to give it more space without disturbing the other navs. And its in a wrapper of 800px width.

    When I am printing the page of the website the header doesn’t appear. What do I do so that it does appear?

    Please help.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

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