Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-02-2011, 01:25 PM   #1
Wizard of Wires
 
setishock's Avatar
 
Join Date: Feb 2005
Location: Not sure
Posts: 10,030
Default ARRGGG How do you make an img src call repeat?

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...
__________________

setishock is offline   Reply With Quote
Old 05-24-2011, 08:44 PM   #2
Solid State Member
 
Join Date: May 2011
Posts: 18
Default Re: ARRGGG How do you make an img src call repeat?

Could you show me what you have? All you will need is a loop and in that output the HTML.

PHP Code:
// loop 10 times
for($i $i 10 $i++)
    echo 
'<img src="" />'
__________________

Sefrotox is offline   Reply With Quote
Old 05-24-2011, 09:23 PM   #3
7D8
In Runtime
 
7D8's Avatar
 
Join Date: Oct 2006
Posts: 209
Default Re: ARRGGG How do you make an img src call repeat?

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.
__________________
// twitter.com/7D8 | methodcity.com
7D8 is offline   Reply With Quote
Old 05-24-2011, 09:37 PM   #4
Solid State Member
 
Join Date: May 2011
Posts: 18
Default Re: ARRGGG How do you make an img src call repeat?

Quote:
Originally Posted by tomek View Post
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.
Sefrotox is offline   Reply With Quote
Old 05-25-2011, 03:54 AM   #5
7D8
In Runtime
 
7D8's Avatar
 
Join Date: Oct 2006
Posts: 209
Default Re: ARRGGG How do you make an img src call repeat?

Quote:
Originally Posted by Sefrotox View Post
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.
7D8 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 12:13 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0