Html – How to make a background image repeat horizontally


<div id="background"> <img src="images/Untitled.gif" id="Image5" alt="" style="background-repeat:repeat-y;width:273px;height:68px;"/> </div>

I want to make an image repeat in a horizontal direction, I thought I could to this by making it a background image but it isn't working. tell me what I am doing wrong thanks.

Best Solution

Try this out:

<div style="height: 100px; background-image:url('picture.jpg'); background-repeat:repeat-x;">
Your text here.