paulop1975:
I looked at the accepted answer, and I was not able to understand. It seems that I need to read the whole thread. Can't you list for the solution in brief to save my time?
Main Topics
Browse All TopicsHi Experts,
I have an image that i want to use in all my tables as a background. I am using this in my CSS file by setting the background image of the table.
I have different table sizes because they are 100%, but how do i stretch the image accordingly?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Are you really sure you want to stretch the bg image and not tile it ?
if you are looking for tiling the bg image, below is the code.
CSS can look this way,
<style type="text/css">
.tablebg { background-image: url(image.jpg); }
</style>
Now All tables in your page with the class 'tablebg' will have the background image defined in the CSS.
for example,
<table class="tablebg">
<tr>
<td>
Table content
</td>
</tr>
</table>
As far as I know, there isn't a proven method for controlling the width or height of a background image in css. so you can't 'stretch' the BG image. as per your table sizes.
feesu:
If you have the above image that you want to use in a set of tables with varying widths, then use code like this:
.tableBackground {background: url(textbackground.gif) repeat top left;}
Your table background image will repeat endlessly on the x and y axises and tile as long as the graphic is seamless, regardless of how large your table is in length and width.
In order to customize the repeats, you can use the following variables in your CSS code:
Repeats:
repeat
repeat-x
repeat-y
no-repeat
Positions:
top left
top center
top right
center left
center center
center right
bottom left
bottom center
bottom right
x% y%
xpos ypos
If you want the attached image as the table background, then repeating won't help. It will create patches because its not a seamless image...
CSS3 has a property called 'background-size'
but I feel our browsers wont support this property yet.
Dynamic sizing of bg image is possible but its complex.
There is a method to Fake a Stretched Background Image using DIV's
check it here
http://webdesign.about.com
Its probably not worth the hassle since you might run into a lot of browser compatibility issues and also in the end you get an jagged bg image.
I suggest resizing the bg image in photoshop and create different sized images for your different tables.
Oh, I see your problem, now. You will want to get your rounded corner effects with CSS, then, instead of the graphic if using a 3-column table won't work for you (3 separate background images in 3 columns.) Try this technique; it should give you what you need: http://www.schillmania.com
You can also try these other rounded-corner techniques in CSS:
http://www.cssjuice.com/25
Business Accounts
Answer for Membership
by: paulop1975Posted on 2008-04-18 at 19:07:12ID: 21390819
http://www.experts-exchang e.com/Web/ Graphics/W eb_Images/ Q_20526046 .html