View Full Version : Backgrounds
12-17-2006, 08:52 PM
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.
12-17-2006, 09:04 PM
I think that this belongs in the HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13) 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.
12-18-2006, 05:04 PM
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?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.