This question seems pretty simple, but I have problems with it.
If I have two divs given these styles:
<div class="col col20"> Content left </div> <div class="col col80"> Content right </div>
It will create two divs (and in my stylesheet, one has width:20% and the other width:80% . However, there is still a space after the div, because the new line between each tag is considered a space. HTML is disgusting, making </div><div... what can I do to get rid of this space?
I tried various google actions like "html space after div", etc., but I just get a bunch of newbie questions asking about CSS sizes and more. Excuse me!
EDIT: Currently CSS is as follows:
.col { background:lime; display:inline-block; } .col20 { width:20%; } .col80 { width:50%; }
Scott source share