I am trying to keep html markup to a minimum.
HTML forms are the most difficult, which helps minimize html and css, since it’s very difficult to target all inputs in all browsers without adding classes such as text fields and text fields, etc.
If all of your forms for this site use simple text fields and not something else, the minimal layout approach works just fine. However, controls with a complex markup, such as Telik RAD controls, do not play with a simple mark-up, and often additional markup and classes are required.
These little tricks add a premium, but also make css a lot cleaner and will certainly simplify the style of such elements.
For other common html / css, I try to use as few classes as possible, such as
.Menu {} .Menu li {} .Menu li a {}
This type of template can be reused for repeated data, and templates can be created and developed with very little HTML.
Sometimes its avoidable add classes and much more, but I think that if you think about css and html at all, you should get smooth markup.
From site to site, I rarely use CSS. Its so quick and easy stylish styles for everything you wish, redesigning an existing skin for a new site is often not worth IMO.
Mostly with CSS, I usually take the knowledge that I learned from previous sites and apply them to new sites to make coding easier for all browsers :)
Mig
source share