I use 'class' when I need CSS function. For example, when I want to use clear: left;
I make a class .clear {clear: left;}
and use it in HTML file.
But there is always the warning
should trim empty
Luckily, it's not error so I don't care greatly. But it bother me sometimes.
Is there any solution sticking my habit?
For Aptana Studio users:
Windows: go to Window > Preferences > Aptana Studio > Validation
(Mac: go to Aptana Studio > Preferences > Aptana Studio > Validation)
Select HTML Tidy Validator then some collapse-able options will appear. Select Elements, it will show a list of options. Now go to the bottom of the list and you'll see "Trim Empty Elements": change it from warning to ignore.