This is a discussion on "styles on tables" within the Web Page Design section. This forum, and the thread "styles on tables are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
styles on tables
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
When applying a style to a table is it better to do it as a table id or just use class. Want to have different style tables so dont want to redefine the table tag. Do id's need to be unique when on the same page.
I am using Dreamweaver studio 8 and on the drop down you can only choose an id once on that page. Can duplicate the id if I use code though. I know most people just use divs but I am still not confident enough to utilise the benefits yet. There seem to be cross brower pitfalls and layout problems particularly with Dreamweaver. Any advice, yes please!! |
|
|
|
#2
|
|||
|
|||
|
Re: styles on tables
Yes you should use ids once per page
If you need help for a bit to use DIV tags you can use these here to get you started. http://www.oswd.org http://www.openwebdesign.org http://blog.html.it/layoutgala/ |
|
#3
|
|||
|
|||
|
Re: styles on tables
You're right. To go through validation, id's should only be used once so use classes. Add your classes to the TR or TD tags to change the formatting style.
|
|
#4
|
|||
|
|||
|
Re: styles on tables
Quote:
In the past when I have wanted more than one table style instead of using
td.table01 tr.table02 Or is there a better way |
|
#5
|
||||
|
||||
|
Re: styles on tables
You can use ID's all over the place only if they're used once per page. Classes can be used twice, or more, per page.
For instance: You cannot have this on the same page: <table id="blue"> <tr> <td>some information</td> </tr> </table> <table id="blue"> <tr> <td>other information</td> </tr> </table> But you can have this: <table class="blue"> <tr> <td>some information</td> </tr> </table> <table class="blue"> <tr> <td>other information</td> </tr> </table> |
|
#6
|
|||
|
|||
|
Re: styles on tables
Thanks but I am still nervous about cross browser issues using divs particularly when using complex layouts where you float them. Have just read the article on Tables vs CSS-P Poll in this forum http://www.webforumz.com/html-forum/...css-p-poll.htm and I can see I am not the only person having doubts, although I am intrigued by the possibilities.
|
|
#7
|
|||
|
|||
|
Re: styles on tables
thanks for everyones help
|
|
#8
|
||||
|
||||
|
Re: styles on tables
Quote:
This, for instance: http://amsa.digitalbungalow.com/amsa/bor/highschool/ [edit] Seems like my development server at work is temporarily buggy, check that link later |
|
#9
|
|||
|
|||
|
Re: styles on tables
Quote:
Will look at link latter. Ta |
|
#10
|
||||
|
||||
|
Re: styles on tables
Quote:
|
|
#11
|
||||
|
||||
|
Re: styles on tables
You can open the page as a file in any browser and bookmark it. You can have as many browsers open as you want, although I've had problems trying to keep more than one version of IE.
|
|
#12
|
||||
|
||||
|
Re: styles on tables
Quote:
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
#13
|
|||
|
|||
|
Re: styles on tables
check out Layout Gala: a collection of 40 CSS layouts based on the same markup and ready for download! to get you started with cross-browser compliant css layouts.
|
![]() |
| Tags |
| styles, tables |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IE6 Ignoring some styles but IE7 works fine?? | swillicott | Web Page Design | 4 | May 14th, 2008 11:35 |
| CSS conflicting styles | ttaxi | Web Page Design | 2 | Mar 28th, 2008 16:01 |
| who wants to talk about css print styles? | PixelLuv | Web Page Design | 4 | Jul 14th, 2006 14:51 |
| Styles in classes? | timmytots | Web Page Design | 4 | Dec 2nd, 2005 01:20 |
| Need Help with styles and where to start on this mess... | EAndrews | Web Page Design | 10 | Nov 7th, 2005 20:46 |