|
-
Jun 21st, 2004, 01:25 PM
#1
Thread Starter
Frenzied Member
CSS: define table border [Resolved]
How do you define a table border in CSS? I'm trying to do a class to make the top and bottom border of my table be a single thin line and I'm having no luck:
Code:
.test {border: 0px;1px;0px;1px;}
Last edited by ober0330; Jun 21st, 2004 at 01:42 PM.
-
Jun 21st, 2004, 01:42 PM
#2
Thread Starter
Frenzied Member
Got it:
Code:
.tbl {
border-top: 1px solid Black;
border-right: 0px solid White;
border-bottom: 1px solid Black;
border-left: 0px solid White;
}
-
Jun 21st, 2004, 04:03 PM
#3
Originally posted by ober0330
Got it:
Code:
.tbl {
border-top: 1px solid Black;
border-right: 0px solid White;
border-bottom: 1px solid Black;
border-left: 0px solid White;
}
Since you've specified no border on the right or left, the solid white is unnecessary, and infact can be shortened to the following:
Code:
.tbl {
border: 1px 0px 1px 0px solid Black;
}
It'll load faster that way.
TG
Last edited by techgnome; Jun 21st, 2004 at 04:23 PM.
-
Jun 22nd, 2004, 09:07 AM
#4
Thread Starter
Frenzied Member
Actually, your suggestion doesn't work at all, but I can take out the white borders and it works.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|