Jump to content
xisto Community
Sign in to follow this  
delivi

Help Adding Background Image To Table In Xhtml Page

Recommended Posts

I want to add a image as background of a Table in a XHTML page, I did a page validation at http://forums.xisto.com/no_longer_exists/.

It showed the folloeing error for table

"there is no attribute "background"....0" cellspacing="0" border="0" background="img/main.jpg">

and for TD
there is no attribute "background".<td width="100%" background="img/toplogobg.jpg">

Please help me how to add the image as background to the table. Please help me.

Share this post


Link to post
Share on other sites

in your css file ad the following.

background: url("navbar.jpg"); background-repeat: no-repeat;

XHTML no longer supprts backgrounds so you must use a css file to show a background image.

Share this post


Link to post
Share on other sites

thanx Saint_Michael your solution has worked. I cread different class names for each image i wanted to appear in different tables and that worked.Thanx once again.This is the reason I love Xisto.

Share this post


Link to post
Share on other sites

No problem delivi and remember vote me president of the world in 2035 :lol:. Topic solved and topic closed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.