xhtml & tables

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;
?>

disaster-master's picture

She has: 2,154 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

Suzanne's picture

She has: 5,507 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

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.