Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-03-2011, 11:56 PM   PM User | #1
misheck
New Coder

 
Join Date: Dec 2008
Posts: 81
Thanks: 11
Thanked 1 Time in 1 Post
misheck is an unknown quantity at this point
How to stretch and repeat an image for background

I need to create a background image for my top navigation for website so instead of creating a long stretched image which will be big I need to create a small image/strip that will be repeated across the width so that it will be a very tiny image and will not slow my website.

So lets say my navigation is (Width X Height) 900px X 10px I will make a small strip of 10px X 10px and then repeat it across the width.

Sorry its a dumb question but I am new to CSS.
misheck is offline   Reply With Quote
Old 11-04-2011, 12:03 AM   PM User | #2
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
Code:
background: url('image.png') repeat;
or separately:
Code:
background-image: url('images.png');
background-repeat: repeat-x;
or
background-repeat: repeat-y;
or
background-repeat: repeat; (both x&y)
Sammy12 is offline   Reply With Quote
Users who have thanked Sammy12 for this post:
misheck (11-04-2011)
Old 11-04-2011, 12:05 AM   PM User | #3
misheck
New Coder

 
Join Date: Dec 2008
Posts: 81
Thanks: 11
Thanked 1 Time in 1 Post
misheck is an unknown quantity at this point
Thanks for the help.
misheck is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:52 PM.


Advertisement
Log in to turn off these ads.