By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,067 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

How do you make a table background cover whole table

P: n/a
I have a 90 by 40 graphic. I would like to make this a background in my
table so this nice backround will cover the whole table like painting it
etc. no matter how big or small I make it. Right now, it is showng just
the image.

How do I do this?

Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <GT********************@news4.srv.hcvlny.cv.net> ,
"Danny" <da********@hotmail.com> wrote:
I have a 90 by 40 graphic. I would like to make this a background in my
table so this nice backround will cover the whole table like painting it
etc. no matter how big or small I make it. Right now, it is showng just
the image.


In your <head></head> section, add some CSS (Cascading Style Sheets,
powerful stuff):

<style type="text/css">

table {
color: #000;
background: #fff url(pathtoimage.jpg);
}

</style>

Alternatively, you can put these style rules into a separate file and
refer to that file from your HTML document. You can refer to the same
document from all of your HTML files, essentially dictating the looks on
your entire site by only adding to one file. But that goes a bit beyond
the basics I showed above. Let us know if you are interested and the
good folks here will help you on your way with links to good CSS
tutorials.

--
Kris
<kr*******@xs4all.netherlands> (nl)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.