Log In · Register

 
bordercolor attribute validation, help!
nackchoon
post Dec 30 2005, 06:54 PM
Post #1


Me. Me. Me... ...?
***

Group: Member
Posts: 57
Joined: Jun 2004
Member No: 25,177



While validating my pages that are in XHTML, it turns out that the attribute "bordercolor" for "table" is unacceptable. It claims that I could do it by using CSS, but I just can't! I tried using border-color in CSS, but when I applied it to the table, I only got one border around the whole entire table, instead of each cells.

Any help...? ^-^

Thank you in advance laugh.gif
 
 
Start new topic
Replies (1 - 7)
talcumpowder
post Dec 30 2005, 06:58 PM
Post #2


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Errr.... Can't you just apply the border property to the <td> tag?
CODE
td{border: 1px solid #000000}

edit// That is what you meant by cell, isn't it?
 
nackchoon
post Dec 30 2005, 07:15 PM
Post #3


Me. Me. Me... ...?
***

Group: Member
Posts: 57
Joined: Jun 2004
Member No: 25,177



Well actually, not really..
what happened was that when I put in the code:

The bordercolor wouldn't work...
therefore, I tried to put it in CSS.
The result was a box around the whole entire table, instead of changing the color of all the borders in the table.
 
*mipadi*
post Dec 30 2005, 07:17 PM
Post #4





Guest






bordercolor is not a valid attribute. Ue the "border" property of CSS. You have to screw around with it a bit and set the borders for TABLE, TD, TR, and other table-related tags.

If your table is for page layout, though, you should use CSS to lay it out. Tables are only for the display of tabular data.
 
talcumpowder
post Dec 30 2005, 07:25 PM
Post #5


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



You just used the boder-color property by itself? Bingo. You need to use border-style to set the style first.
[ http://www.blewmyallowanceonmanga.net/ribb...roundabout.html ]
Kinda like that.
 
nackchoon
post Dec 30 2005, 07:25 PM
Post #6


Me. Me. Me... ...?
***

Group: Member
Posts: 57
Joined: Jun 2004
Member No: 25,177



like...

table { border-color: color; }
td { border-color: color; }
and etc...?
Confused -0-
 
nackchoon
post Dec 30 2005, 07:28 PM
Post #7


Me. Me. Me... ...?
***

Group: Member
Posts: 57
Joined: Jun 2004
Member No: 25,177



Oh!! I got it to work!! ^-^
lol;; thank you!!
 
talcumpowder
post Dec 30 2005, 07:30 PM
Post #8


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Meh. Don't double-post, the edit button has a function y'know. PM me if this needs to be reopened.
-> Topic Closed.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: