View Full Version : css and tables
07-07-2002, 01:12 AM
I'm trying to use as much css as possible. What attributes can css define for tables? Can it specify cellspacing & cellpadding? How about align & valign? Anything else essential that I'm forgetting?
07-07-2002, 01:49 AM
There are a ton of attributes you can define for tables in css. I will name all that I can think of at the time:
padding:, padding-left:, padding-right:, padding-top:, padding-bottom:
border:, border-color:, border-left:, border-right:, border-top:, border-bottom:, border-left-width:, border-right-width:,border-top-width:, border-bottom-width:, border-width:,
vertical-align:, (<--I think that works, not positive though!)
So those are all the CSS attributes for tables that I can think of at the time. Good luck though. You can also try searching the web for something like "CSS tips" or "CSS attributes."
07-07-2002, 01:55 AM
Thanks for the reply, but I already knew about those since they are common to many different css elements (does align work? I tried align: center and I never got it to work). Are there any table-specific css attributes?
07-07-2002, 09:51 AM
Have you searched the web for this yet? Many hits will result.
Anyway, I've gone back to this list quite a few times:
07-07-2002, 02:07 PM
Yeah, I've done some searching. That link is helpful, Gordo, I bookmarked it :)
I still can't figure out if cellspacing & cellpadding can be set with css.
07-07-2002, 05:39 PM
padding can be done.
padding, padding-left, padding-right, padding-top, padding-bottom
07-07-2002, 09:24 PM
The W3C covers tables and CSS pretty well at http://www.w3.org/TR/REC-CSS2/tables.html
Not all browsers support all properties. Gordo's link can help you with that.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.