Alex Rivera | Logout

How do I change my code to avoid warning "should trim empty <div>" in Aptana Studio?

Asked 2011-11-12T11:17:38.710
24

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?

Edit
Report

1 Answer

39

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.

answered 2013-07-23T09:25:25.887

Your Answer