CSS and Tables

C

camanokid

I use Shared borders - top & left.
Both are formatted with tables (I wish to be borderless).
I have data tables in my page body...some are borderless and some have
borders.
I have created my CSS:
1. to modify the 'TABLE' & 'TD' elements for my desired BORDER features.
2. to give me an option for 'borderless_tables'.

All is well in my BODY area.
But the tables in the shared border area have BORDERS...from the modified
TABLE & TD in my CSS.

How can I have the best of both? Thanks for any help.
Here is my CSS code:

TABLE { cellpadding: 3px; cellspaceing: 3px; border-collapse: collapse }
TD { align: left; border: 1px solid #A92956 }
..table_shading { background-color: #CCFFFF; }
..bordeless_table { border: 0px }
 
S

Stefan B Rusynko

IMHO
Don't use CSS for your table borders to be 0 (or your cell padding/ cellspacing)
- just set them to 0 in table properties
Use CSS only for cell borders if you want them



|I use Shared borders - top & left.
| Both are formatted with tables (I wish to be borderless).
| I have data tables in my page body...some are borderless and some have
| borders.
| I have created my CSS:
| 1. to modify the 'TABLE' & 'TD' elements for my desired BORDER features.
| 2. to give me an option for 'borderless_tables'.
|
| All is well in my BODY area.
| But the tables in the shared border area have BORDERS...from the modified
| TABLE & TD in my CSS.
|
| How can I have the best of both? Thanks for any help.
| Here is my CSS code:
|
| TABLE { cellpadding: 3px; cellspaceing: 3px; border-collapse: collapse }
| TD { align: left; border: 1px solid #A92956 }
| .table_shading { background-color: #CCFFFF; }
| .bordeless_table { border: 0px }
 
P

p c

I had similar problem when i was trying to use style sheets for top and
bottom borders. The linked CSS stylesheet is picked up by the main page
but not the the border.

To format the tables and their contents in borders, either do it w/o
styles the old fashioned way. Or apply the style inline for each element
it applies to. E.g.,

<TD style="align: left; border: 1px solid #A92956">

...PC
 
M

Murray

The linked CSS stylesheet is picked up by the main page but not the the

This means that you have some other conflicting style, most likely. There
is no such inherent problem with borders on tables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top