|
Posted by dorayme on 05/05/06 07:04
In article <ohfk52dvb8qldibs2etsub9ghjifb3kbs0@4ax.com>,
Steve Pugh <steve@pugh.net> wrote:
> And think about using more logical and less presentation orientated
> class and id names. class="blueText" is silly if next week you change
> the design and end up with .blueText {color: red;}
> Ask yourself, why is that text blue? If it's for emphasis then
> consider using em or strong instead of span, and then maybe you won't
> need a class name at all.
This is right in theory, harder to achieve in practice. To
actually get a job done, it is useful to do exactly like
class="blue" from .blue{color:blue}. Because at the stage of
making things up, you don't know how you want things where.
Inline styles and every inelegancy is the order of the usual day.
At least, I speak for myself and would not be surprised if many
others do same.
In the end, though, this advice comes into its own. You go back
and clean up and try to make actual practice look like how it
should have been done in the first place. In time, hopefully,
practice gets closer to theory. I am not being totally cynical.
Cleaning up afterwards is not only satisfying as an exercise in
itself, but, it - in theory - helps any later changes and
updates. In theory! What actually happens is that the changes are
often so dictated by new material and objectives that one is back
plunging into the grubbiest of techniques (I always double lock
the doors and put dark material on the windows till the job is
finished) and then one cleans up again and feels good and
virtuous.
--
dorayme
[Back to original message]
|