Question:

HTML Background coding help?

by  |  earlier

0 LIKES UnLike

Well I have this code:

<body background="IMAGE URL">

But I need to fix it where the image will be centered, only tile vertically, and is made to where it will scroll with the page.

Any help?

 Tags:

   Report

1 ANSWERS


  1. Okely Dokey,

    CSS: (insert after the &lt;title&gt;&lt;/title&gt;)

    &lt;style&gt;

    body {

    background: url(img.gif) repeat-x top center

    }

    &lt;/style&gt;

    Longened

    &lt;style&gt;

    body {

    background-color: #000000;

    background-repeat: repeat-x;

    background-image: url(img.gif);

    background-position: top center;

    background-scroll: scroll

    }

    &lt;/style&gt;

    HTML

    nothing.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.