Forums

repeating header (2 posts)

  1. kathleane
    Member
    Posted 3 years ago #

    I have changed the image in a WordPress template and cannot get my new image to not repeat. I searched for the word "repeat" in the header.php and cannot find it so haven't made any changes to that file. The original template called the header image top.jpg so I simply named my new image top.jpg so I wouldn't have to mess with that. Below is the code that I've used in the style.css.

    /* The Top */

    .top {
    height:338px;
    margin-top:0px;
    background:url(images/top.jpg)center no-repeat;

    This is the only piece of code in the style.css file that refers to top.jpg so it is the only place that I made changes. Can anyone help me to fix this?

  2. jbbrwcky
    Member
    Posted 3 years ago #

    Change your 'background' bit to this:

    background-image: url(image/top.jpg);
    background-repeat: no-repeat;

Topic Closed

This topic has been closed to new replies.

About this Topic