I'm making a website in Aptana and i'm using an empty div element for the styling of a border-bottom.
I couldn't make it part of the element it's a border of because it needs to have the same width all the time and that supposed parent element in fact changes size depending on the content.
Question being: Is it bad to use empty divs like this?
Aptana gives me a warning. It says i "should trim empty div".
I'm talking about the divs down here with the class "showinfo-border-left/right"
<div class="showinfo">
<div class="showinfo-left">Text</div>
<div class="showinfo-right">More text</div>
</div>
<div class="showinfo-border-left"></div>
<div class="showinfo-border-right"></div>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…