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 12-17-2006, 07:52 PM   PM User | #1
J1mmy
Regular Coder

 
Join Date: Apr 2006
Location: UK, England
Posts: 268
Thanks: 2
Thanked 0 Times in 0 Posts
J1mmy is an unknown quantity at this point
Backgrounds

I have a background I want to add to my page. Im using a table, and when I add the bg to the page, it seems to repeat the background in that cell. How can stop it being repeated?

Also, is there any easy way to design the bg so that it fits in with the width of the cell? Sometimes I find myself having to strech the table or cell becuase the backgound doesnt fit in or show fully.
J1mmy is offline   Reply With Quote
Old 12-17-2006, 08:04 PM   PM User | #2
Arbitrator
Senior Coder

 
Arbitrator's Avatar
 
Join Date: Mar 2006
Location: Splendora, Texas, United States of America
Posts: 2,927
Thanks: 6
Thanked 194 Times in 191 Posts
Arbitrator is on a distinguished road
I think that this belongs in the HTML & CSS forum.

You can stop a background from repeating by using applying the CSS background-repeat property to that table cell. Specifically, background-repeat: no-repeat.

Background stretching won’t be available until CSS3 which, suffice it to say, is probably a very long way away. If you need a table cell’s dimensions to match those of the background image, then just set the table cell’s dimensions explicitly. If you need the cell to be able to expand beyond those dimensions then try using the min-width and min-height properties instead to define a minimum width and height.
__________________
Please for the love of god stop making IE. You current "browser"s cause me to cry every day. —Phil *
Arbitrator is offline   Reply With Quote
Old 12-18-2006, 04:04 PM   PM User | #3
J1mmy
Regular Coder

 
Join Date: Apr 2006
Location: UK, England
Posts: 268
Thanks: 2
Thanked 0 Times in 0 Posts
J1mmy is an unknown quantity at this point
Well, Ive been told that using pixels isnt a very good idea, so Im using percentages insted. I guess if I was using pixels, I could have taken the spec in pixels in pasted them in photochop or whatever and made a background accordingly, then insert it into DW which should display it exactly.

Would this be the same case for percentages aswell?
J1mmy 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 11:11 PM.


Advertisement
Log in to turn off these ads.