how can i repeat my background image in html?

  • Thread starter Thread starter TPuni
  • Start date Start date
T

TPuni

Guest
i want to repeat my bk picture to be just like yahoo answer's one but with different colors.. i have the code of repeating the image but what i want to know is how to make the picture itself to turn out that way. Any help would be appreciated ;)
 
You need to use CSS (style sheet).

Create a DIV like this:

<DIV id="topbanner"></DIV>

Then, define your top banner is your CSS:

#topbanner {
background-image: url(images/myimage.png);
background-repeat: repeat-x;
}

That's about it! Good luck!
 
Back
Top