Forums
This topic is locked
CSS and standards
Posted 08 Jul 2003 11:50:26
1
has voted
08 Jul 2003 11:50:26 Jelle-Jacob de Vries posted:
What is more according to the current standards when styling tables with CSS, styling the tables with a div class or with a unique table.tabelid using the table selector(Redefine html tag)?I'm asking this because the tutorials and books I've read, never mention the table id according to CSS. Isn't this an option or is it wrong to use the table.id?
Edited by - jellejacob on 08 Jul 2003 11:52:57
Replies
Replied 11 Jul 2003 00:04:33
11 Jul 2003 00:04:33 Lee Diggins replied:
Just me thinking out loud...
...the DIV class would give greater flexibility.
Digga
Sharing Knowledge Saves Valuable Time!!!
...the DIV class would give greater flexibility.
Digga
Sharing Knowledge Saves Valuable Time!!!
Replied 11 Jul 2003 09:03:05
11 Jul 2003 09:03:05 Jelle-Jacob de Vries replied:
Thanks for your reply Digga!
Replied 11 Jul 2003 09:28:56
11 Jul 2003 09:28:56 Martha Graham replied:
We have several tutorials on Tables with CSS written by Rachel Andrew.
Tables to CSS: www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=4967
Tables to CSS - Taking CSS Further:
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=5058
Hope this helps you.
Martha Graham
DMXzone manager
Tables to CSS: www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=4967
Tables to CSS - Taking CSS Further:
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=5058
Hope this helps you.
Martha Graham
DMXzone manager
Replied 11 Jul 2003 10:43:29
11 Jul 2003 10:43:29 Jelle-Jacob de Vries replied:
Thanks Martha,
I've read those articles a little while ago. And I must say the are great. But in my opion there's something missing. I would like a more clear explenation about the "how" and "why" of certain principles. And maybe a explenation of some alternatives if the exist.
I also would like to see a tutorial in which Rachel Andrew or Molly Holzschlag analyse a website from Zeldman, some other Guru or a website that's build very well. And teach newbies like me "how" and "why" the website is build the way it is.
If a tutorial like I mentiond is comming up, then I didn't say anything, if it isn't then I hope it will sometime in the future. I really like the tutorials and a lot of people with me, I think.
Edited by - jellejacob on 11 Jul 2003 10:44:11
I've read those articles a little while ago. And I must say the are great. But in my opion there's something missing. I would like a more clear explenation about the "how" and "why" of certain principles. And maybe a explenation of some alternatives if the exist.
I also would like to see a tutorial in which Rachel Andrew or Molly Holzschlag analyse a website from Zeldman, some other Guru or a website that's build very well. And teach newbies like me "how" and "why" the website is build the way it is.
If a tutorial like I mentiond is comming up, then I didn't say anything, if it isn't then I hope it will sometime in the future. I really like the tutorials and a lot of people with me, I think.
Edited by - jellejacob on 11 Jul 2003 10:44:11
Replied 11 Jul 2003 12:03:15
11 Jul 2003 12:03:15 Martha Graham replied:
Thanks for the nice compliments!
Check out Molly's article CSS Design with DreamweaverMX: Borders, Backgrounds, Blocks and Boxes: www.dmxzone.com/go?5238
She uses real-live examples.
There will be more to come.....
Martha Graham
DMXzone manager
Check out Molly's article CSS Design with DreamweaverMX: Borders, Backgrounds, Blocks and Boxes: www.dmxzone.com/go?5238
She uses real-live examples.
There will be more to come.....
Martha Graham
DMXzone manager
Replied 16 Jul 2003 14:36:44
16 Jul 2003 14:36:44 Lee Diggins replied:
Hi
Just coming back to this question to try and add some clarity. You've quoted 'div class' did you just mean 'class' (I've assumed this is so)?
I've just read about the 'class selector' and 'id selector' in CSS and the only info I can give you about the ID Selector usage is this. CSS specifications states that ID's must be unique, no two HTML tags within the same document should have the same ID within a web page - that's it!
As to the use of the ID selector, could be good as you can use both the ID selector and Class selector at the same time. Say you had a many tables with their layout set using Class, however, one section of one table needed to be different from every other table using this Class style, you can apply the 'extra' style using the ID selector as well, so both the Class and ID styles are applied - cascade overlapping.
Or, as an alternative to the above, create a new Class and apply it to the HTML tag and ignore the ID.
My feeling from what I've read is this, I could use one or the other, or both, there are no specific guidelines about which you should use, however I personnaly would use only the Class and forget the ID when using CSS.
Hope I've helped, at least a little bit and you've managed to understand what I'm trying to explain.
Digga
Sharing Knowledge Saves Valuable Time!!!
Just coming back to this question to try and add some clarity. You've quoted 'div class' did you just mean 'class' (I've assumed this is so)?
I've just read about the 'class selector' and 'id selector' in CSS and the only info I can give you about the ID Selector usage is this. CSS specifications states that ID's must be unique, no two HTML tags within the same document should have the same ID within a web page - that's it!
As to the use of the ID selector, could be good as you can use both the ID selector and Class selector at the same time. Say you had a many tables with their layout set using Class, however, one section of one table needed to be different from every other table using this Class style, you can apply the 'extra' style using the ID selector as well, so both the Class and ID styles are applied - cascade overlapping.
Or, as an alternative to the above, create a new Class and apply it to the HTML tag and ignore the ID.
My feeling from what I've read is this, I could use one or the other, or both, there are no specific guidelines about which you should use, however I personnaly would use only the Class and forget the ID when using CSS.
Hope I've helped, at least a little bit and you've managed to understand what I'm trying to explain.
Digga
Sharing Knowledge Saves Valuable Time!!!