> Peter Mount <[EMAIL PROTECTED]> wrote:
>
> > Steve LaBadie <[EMAIL PROTECTED]> wrote:
> >
> > I created a calendar with tables and all I want to do is control the
> > borders for the table. When I apply CSS all of the tables on the page
> > are being effected. I first surrounded the table with a <div> tag and
> > then added a class attribute to the table, neither worked. Any
> > suggestions would be appreciated.
> >
> > <style type="text/css">
> > #calendar #table, td, th {
> > border-color: #600;
> > border-style: solid;
> > }
> > #calendar #table {
> > border-width: 0 0 1px 1px;
> > border-spacing: 0;
> > border-collapse: collapse;
> > }
> > #calendar td, th {
> > margin: 0;
> > padding: 4px;
> > border-width: 1px 1px 0 0;
> > background-color: #FFC;
> > }
> > </style>
> >
> > Thanks
> > ______________________________________________________________________
> > css-discuss [EMAIL PROTECTED]
> > http://www.css-discuss.org/mailman/listinfo/css-d
> > List wiki/FAQ -- http://css-discuss.incutio.com/
> > List policies -- http://css-discuss.org/policies.html
> > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
> Hi
>
> Try this:
>
> <html>
> <head>
>
> <style type="text/css">
> #calendar table, #calendar td, #calendar th {
> border-color: #600;
> border-style: solid;
> }
> #calendar #table {
> border-width: 0 0 1px 1px;
> border-spacing: 0;
> border-collapse: collapse;
> }
> #calendar td, #calendar th {
> margin: 0;
> padding: 4px;
> border-width: 1px 1px 0 0;
> background-color: #FFC;
> }
> </style>
>
> </head>
>
> <body>
> <div id="calendar">
> <table>
> <tr>
> <th>head 1</th><th>head 2</th>
> </tr>
> <tr>
> <td>Cell 1</td><td>Cell2</td>
> </tr>
> </table>
>
> </div>
>
> <table>
> <tr>
> <th>head 1</th><th>head 2</th>
> </tr>
> <tr>
> <td>Cell 1</td><td>Cell2</td>
> </tr>
> </table>
>
> </body>
> </html>
>
> Peter Mount
> Web Development for Business
> [EMAIL PROTECTED]
> http://www.petermount.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/