justuptime.com - monitor your servers & websites

Help! Image in table?

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 80 posts

Joined: May 2001

I have a Christmas site that I'm about to start an overhaul on. I would like to use the marble background in one column of my table. It looks fine in IE5, but I don't know if it works in all browsers. Also, it doesn't validate in XHTML (there is no attribute "background" ...)

http://www.allthingschristmas.com/index2.html

Is there some way to use CSS to have that image in that table column? I can't use it as a background since it will start at the top of the page and mess up my first table.

Thanks,
Deborah

Suzanne's picture

She has: 5,512 posts

Joined: Feb 2000

Use it as a background in that cell. Use a class or id to identify the column:

HTML

CSS

#navigationcell {
background-image: url(/graphics/marble.jpg) #eee repeat;
}

hth,

They have: 80 posts

Joined: May 2001

Thanks so much - got it working. Now I can start sprucing up the site.
Yeah!
Deborah

dk01's picture

He has: 517 posts

Joined: Mar 2002

You should also check the CSS Validator for errors. Right now you have 3 errors. You have used "font-weight: heavy" on your h1, h2, and h3 css styles. It should instead be "font-weight: bold" on each of them.
Way to convert to xhtml/css. Site is lookin good! Smiling
-dk