eHaloCreative
07-09-2007, 08:57 PM
I like to try and indent and space out my code, to make it somewhat readable later. However, IE, and to a limited extent, firefox will sometimes add spaces to the page, usually messing up tightly fitting images and the like. Is there any way to stop that, besides getting rid of all spaces and indention, making the code one big horrible block? A very basic example would be as follows:
<div>
<img src=whatever>
<img src=whatever>
</div>
vs
<div><img src=whatever><img src=whatever></div>
I've been working around it, but it is still a pain to read. Just wondering if there is a better way.
<div>
<img src=whatever>
<img src=whatever>
</div>
vs
<div><img src=whatever><img src=whatever></div>
I've been working around it, but it is still a pain to read. Just wondering if there is a better way.