Ezilon.com - Target Your Audience, be Seen in Your Region

xhtml & tables

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: 93 posts

Joined: Dec 2001

In XHTML 1.0 table border color should be placed in the css and not in the code for the page.
In this case how is it possible to have tables on different pages with different border colors ?
Also when I assign a border color in css it gives the color to the top/bottom/left/right borders around the outside of a table,but not to any of the inner borders. How is this done ??

Mika

detox's picture

They have: 571 posts

Joined: Feb 2001

not having jumped into XHTML too far yet, I assume that if you want to have different border colors on different tables you would assign them a different class in the css file. Much like you would with different link colors throughout a site.

Not sure on the second question. If it is done through css though try using

<?php
BORDER
: solid 1px #000000;
?>

Detox -TWF Moderator

DetoxDezigns
- freelance

disaster-master's picture

She has: 2,152 posts

Joined: May 2001

Here are some links for reference until Suzanne appears.Laughing out loud
The first two are on borders and the third is a really good CSS reference in general.

http://www.jegsworks.com/demos/DemoCSS/i-tborders.htm
http://www.htmlgoodies.com/beyond/css_borders.html
http://www.mako4css.com/index.htm

Sonia

"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming -- WOW--What a Ride!!!"

Suzanne's picture

She has: 5,512 posts

Joined: Feb 2000

1. different table border colours on different pages -- use classes
2. inner borders -- define as well
3. grid look (no spaces between) -- border-collapse

http://www.webreview.com/style/css1/charts/mastergrid.shtml
http://www.westciv.com.au/style_master/
http://www.bradsoft.com/

and/or Schengili-Roberts' book Core CSS -- excellent reference.

Smiling Suzanne

Subscribe to this feed: Syndicate content