bordercolor attribute validation, help! |
![]() ![]() |
bordercolor attribute validation, help! |
![]()
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 ![]() |
|
|
![]()
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? |
|
|
![]()
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
#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. |
|
|
![]()
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. |
|
|
![]()
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- |
|
|
![]()
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!! |
|
|
![]()
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. |
|
|
![]() ![]() |