I have been coding with tables for many many years. I liked how easy and fast it was to create stuff. We all know how heavy and messy the code can get.
Over the last year I dabbled in tabless and now I am convert. I have to think a little harder in the beginning bu then it's beautiful to see the site come to live and have a well oxygenated code.
Now I am wondering about how is the best way to organize the hierarchy of the IDs and Classes.
if I don't plan ahead, instead of having a mess with tables, i will have a mess within the CSS code.
I mean with the tables, it was very straight forward, you plan for what you need right away. Adding a column or a row was very easy. But now with divs and the sort, you need to kind of plan ahead and leave space for future evolution.
So for all you CSS gurus, where are some questions:
- What kind of pre-planning do you do before jumping in? Any special rituals that cannot do without?
- How many physical files do you split the CSS code into? According to what logic?
- Do you nest IDs and classes? How much and when?
- How do you plan for the future? Do you leave empty divs in places where you might need to have an extra design element? Specifically I am thinking of a series of templates with small structural differences. Would you run that from the same css files ( have the all the possibles elements built in, then disable enable the ones you need )
- When is it ok to use tables? ( i take it tabulated data is still ok, but with the parameters in the CSS )
I have been using tables to get Blocks to be inline. Tables are stripped of all parameters though.
Any other advice, tips, resources you could suggest?
Over the last year I dabbled in tabless and now I am convert. I have to think a little harder in the beginning bu then it's beautiful to see the site come to live and have a well oxygenated code.
Now I am wondering about how is the best way to organize the hierarchy of the IDs and Classes.
if I don't plan ahead, instead of having a mess with tables, i will have a mess within the CSS code.
I mean with the tables, it was very straight forward, you plan for what you need right away. Adding a column or a row was very easy. But now with divs and the sort, you need to kind of plan ahead and leave space for future evolution.
So for all you CSS gurus, where are some questions:
- What kind of pre-planning do you do before jumping in? Any special rituals that cannot do without?
- How many physical files do you split the CSS code into? According to what logic?
- Do you nest IDs and classes? How much and when?
- How do you plan for the future? Do you leave empty divs in places where you might need to have an extra design element? Specifically I am thinking of a series of templates with small structural differences. Would you run that from the same css files ( have the all the possibles elements built in, then disable enable the ones you need )
- When is it ok to use tables? ( i take it tabulated data is still ok, but with the parameters in the CSS )
I have been using tables to get Blocks to be inline. Tables are stripped of all parameters though.
Any other advice, tips, resources you could suggest?