Reply
how to get images to repeat on x-axis only?
Old 03-24-2006, 11:32 PM how to get images to repeat on x-axis only?
Skilled Talker

Posts: 63
I want an image to repeat itself only on the x axis and start from the top left of a page. The image is a background of course.
__________________
http://www.tantuohy.com
comet is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 03-25-2006, 12:49 AM Re: how to get images to repeat on x-axis only?
Super Talker

Posts: 144
background-repeat: repeat-x;
__________________
create.vibe
web development portfolio
createvibe.com is offline
Reply With Quote
View Public Profile Visit createvibe.com's homepage!
 
Old 03-28-2006, 10:46 AM Re: how to get images to repeat on x-axis only?
jolley_small's Avatar
Novice Talker

Posts: 12
Location: England
background: (color) (image) repeat-x top left;

replace color and image with what you want.

Try topstyle lite, its free and helps write css:
http://www.computeractive.co.uk/vnun.../topstyle-lite
jolley_small is offline
Reply With Quote
View Public Profile Visit jolley_small's homepage!
 
Old 03-28-2006, 02:23 PM Re: how to get images to repeat on x-axis only?
collyer_1's Avatar
Extreme Talker

Posts: 169
Location: Southern Alberta, Canada
All of the above. You can format it inside your stylesheet, or in the head of your page like this:

Code:
body {
background: url("image.jpg") repeat-x #fff;
}
You can change out "body" for any other element you want to put the background on. The reason the "#fff" is still in there is because when the background runs out, it needs to know what to fill the space with.

It's also advisable that you incorporate some positioning in there (like jolley_small did):

Code:
body {
background: url("image.jpg") top left repeat-x #fff;
}
"repeat-x" is interchangeable for "repeat-y" and "no-repeat" aswell. "top" and "left" can be interchanged with bottom, right, middle, or even values (like em, px, %, etc.).

Last edited by collyer_1 : 03-28-2006 at 02:24 PM.
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Reply     « Reply to how to get images to repeat on x-axis only?
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11620 seconds with 13 queries