RE: CSS and table cell borders
by Klaas De Waele <klaas(at)grace.be>
|
| Date: |
Tue, 14 Jan 2003 08:51:34 +0100 |
| To: |
"'Beth Adler'" <doglover(at)cgmailbox.com>, HWG Critique <hwg-critique(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
I don't know if this helps, but there's a rather exotic W3 css attribute
called 'outline', which is similar to border, but never takes up additional
space, is always on all sides but not necessarily rectangular.
You use it like 'border': "outline: black solid 1px;"
Now as far as I know, only NS6/Mozilla and on supported (or rather would be
supporting) this a good 2 years ago. Don't know what the status is now.
But anyway - you might want to try a combination of outline and border -
haven't tried it but let me know the outcome. ;)
- Kayjey -
www.fiatcoupe.net
-----Original Message-----
From: Beth Adler [mailto:doglover(at)cgmailbox.com]
Sent: Tuesday, January 14, 2003 6:03 AM
To: HWG Critique
Subject: CSS and table cell borders
Hi,
I sent this to the Basics list but didn't get any replies, so maybe some of
you can help me.
I would like a 5 px dark red border around the outside of the table, and 1
px dark blue lines between the rows and columns of the Consignment Sale
table at www.beth1.netfirms.com (temporary address).
I can easily put 'border=1' in the table tag which puts a box around every
cell in the table. This would be great, only I don't want every cell
outlined, I just want a single line.
I can also put 'border-right: solid 1px #000080' (or border-bottom or
whatever) in the stylesheet for all the td cells (except the last column),
which allows me to do exactly what I want, but I'd have to go through and
add 'class="list"' to every one separately (34 rows x 5 columns = 170
times!). Since I have several tables other than this one, I can't use
search and replace.
If that is how I have to do it ok, but the simplicity of adding 'border=1'
to the table tag makes me want to find an easier way or to be able to modify
'border=1'. How do you guys do it?
Comments on the rest of the page and site (main page and first two links
only so far) are welcome. Hope you know what I'm talking about. Thanks!
Beth
www.teddybearwebdesign.com
HTML: hwg-critique mailing list archives,
maintained by Webmaster @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.