Help! Image in table?

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,507 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: 516 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

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.