This is a discussion on "Tables in CSS ???" within the Web Page Design section. This forum, and the thread "Tables in CSS ??? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Tables in CSS ???
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
I want to have TABLE with different styles in 2 different ".html" pages of my website.
Is it possible to right the code for two different table in one single CSS ??? Right now the table code (for my FORM) is:
But I need one more table in different page (service.html), which is also linked with the same CSS file. How could I make new table layout style in the same stylesheet & recall it in "service.html", since here, I want text align "justify" and HAVING border in the rows ??? |
|
|
|
#2
|
|||
|
|||
|
Re: Tables in CSS ???
In your service.html file give the body tag an id of service then right CSS that is more specific and will therefore take predence over the less specific css. In sequence, after your #centerContent tr {... have a #service #centerContent tr {border: 1 solid red;} eg. Do the same for your table. |
|
#3
|
||||
|
||||
|
Re: Tables in CSS ???
Quote:
|
![]() |
| Tags |
| tables, css |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| omg keep me away from tables !!! HELP!!! | bruno89 | Web Page Design | 5 | Jul 1st, 2007 18:33 |
| Use CSS to do what tables do????? | WebNinja | Web Page Design | 17 | Feb 18th, 2007 01:07 |
| Why are tables bad? | WebNinja | Web Page Design | 17 | Jan 31st, 2007 21:31 |
| No more tables? | PicoDeath | Web Page Design | 9 | Sep 28th, 2006 18:03 |
| Tables or CSS? | bee_bo | Web Page Design | 15 | Jul 6th, 2006 08:32 |