|
|
 |
| CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS). |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the CSS Cascading Style Sheets section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

February 23rd, 2006, 04:56 PM
|
|
Authorized User
|
|
Join Date: Oct 2004
Location: , , .
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Change border color for every cell of a table
Hi all,
I want to change the border color of every cells or rows of a table but I am not quite sure what is the best way to do it. Personally, I want to change on the table level, not on cells or rows object.
Setting border=1 on table tag will turn all border on but when we try to change border color then only 4 sides border are changed and inside are not. Does anybody know how to do this?
JDang
|

February 23rd, 2006, 05:02 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , , .
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
CSS handles borders os TABLE and TD (and TH) separately.
For all tables.
table,td,th { border: 2px solid #f00 }
If you want to affect just one table, you have to use a more specific selector (for instance by giving the table an id or class).
http://www.w3.org/TR/REC-CSS2/tables.html
--
http://yupapa.com
|

February 23rd, 2006, 05:03 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , , .
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hee-hee! You got me this time, Richard. :D
--
http://yupapa.com
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |