ARRGGG How do you make an img src call repeat?

setishock

Wizard of Wires
Messages
10,726
Location
4321
I simply want to make a small image repeat accross the X axis. I know where to park the call in the template to make it show where I want it. For some reason it won't repeat.
ARRGGGG!!!. It's got to be something simple. It always is...
 
Could you show me what you have? All you will need is a loop and in that output the HTML.

PHP:
// loop 10 times
for($i = 0 ; $i < 10 ; $i++)
    echo '<img src="" />';
 
for HTML, this could be a lot easier

Code:
<style type="text/css">
    #myDiv
    {
        background: url(myImage.jpg) repeat-x 0 0;
        height: 100px;
    }
</style>

<div id="myDiv"></div>

this will make the <div> have a background image that just keeps repeating along the x axis.
 
for HTML, this could be a lot easier

Code:
<style type="text/css">
    #myDiv
    {
        background: url(myImage.jpg) repeat-x 0 0;
        height: 100px;
    }
</style>

<div id="myDiv"></div>

this will make the <div> have a background image that just keeps repeating along the x axis.

You know, that's probably what his original question was about. I saw the forum name, "Web Programming" and his statement "call," and thought that he was wanting a way to actively script it. I don't usually think of HTML as "programming." Though it is considered a Markup language, not an active scripting language like PHP. Thanks for indirectly correcting me if I was wrong. :)
 
You know, that's probably what his original question was about. I saw the forum name, "Web Programming" and his statement "call," and thought that he was wanting a way to actively script it. I don't usually think of HTML as "programming." Though it is considered a Markup language, not an active scripting language like PHP. Thanks for indirectly correcting me if I was wrong. :)

yea, actually maybe he is talking about that. Not sure.
 
Back
Top Bottom