Jump to content

Naomi

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Naomi

  1. Thank you for your reply, I was busy with exams so I didn't find the time to look at your reaction.

    I checked the path so many times and tried everything and everytime thinking why it's not working now I look again and I see I did it wrong...

    Thank you!

  2. Hi all,

     

    I just finished a webdesign course for home study.

    Now I am working on my first assigment but it's going quite the way I want...

    I want to use a background image in my header div.

    Here is my code, what am I doing wrong? Can anybody help me please? Thank you!

     

    my CSS:

     

    #header {
    background-image: url(header.jpg);
    background-size: cover;
    background-position: fixed;
    text-align: center;
    width: 100%;
    height: 200px;
    top: 100px;
    }
    HTML
    <div id="header">
    <header>
    <div class="nav">
    <ul>
    <li><a href="">Home</a></li>
    <li><a href="">About</a></li>
    <li><a href="">Classes</a></li>
    <li><a href="">Contact</a></li>
    </ul>
    </div>
    </header>
    </div>
×
×
  • Create New...