Quote from: dev_cw at Jan 24, 2008, 05:47 AM
...I generally start with the unstyled html and then do the css, and no matter how organized I try to be I always end up looking through the markup to remember what elements are being used etc...
I am not trying to tell you how to work but let me ask you this: Don’t you use many of the same elements over and over again on your projects? Do you usually have a #header, #content, #footer, #sidebar, #menu, #submenu and that sort of thing? Many HTML/CSS folks, myself included, use a base stylesheet and a base page scaffold and then add the customizations.
I name classes for content or function on repeated (or potentially repeated elements) and IDs describe unique content to the page or subelement. Really there should not be so many classes or divs that you can’t scan an HTML page either with your editor or as I do when I am debugging a live site using FireBug in Firefox.
Even though many of my sites have completely different layouts many element are common so instead of rewriting my HTML/CSS from scratch every time I use conventions and common names and it saves me hours and hours (more money in my pocket [never charge website development by the hour]). Some people have gone so far as to use BluePrint CSS but it is overkill in a single designer environment.
One thing I would think about is how you could make starting your website design faster, what could you copy and paste into a new site and already have a basis for your new design that you now have to just modify instead of rebuilding from scratch. If you do lots of fixed width designs with a large content pane and a single column on the left or right with a header and footer you can build that out with your css and Html and use that to start your site.
I have gone so far now to even build out whole declarations in my base CSS file to include such things as horizontal and vertical menus, hCard formatted vCards for addresses, skiplinks nav, designer bylines, and more. Then I know in every site I just need to adjust, align, add dimension and colour and not go, "How did I do that on that other site" and have to open up that site to then copy and paste the CSS over.
All the best in you adventures,
Jay