I'm currently working on my own grid-sized framework. It's working as I want so far. However, there's this space between the columns. (Please see this JSFiddle)
I've already found that the reason this space is there is because of the linebreaks in HTML.
<div class="UIcolumn">
1
</div>
<div class="UIcolumn">
2
</div>
You don't see this space in the second row, where I removed the linebreak between the two columns, and there isn't any space in between.
<div class="UIcolumn">
6
</div><div class="UIcolumn">
7
</div>
I'm looking for a way to automatically remove all these linebreaks. It's not an option to do this by hand as the pages will grow larger and larger.
I've tried removing linebreaks by using $('body').html($('body').html().replace('\n','')), which definitely didn't work. I've searched around on Google, but couldn't find anything that fixes my problem.