Removing whitespace between HTML elements when using line breaks
Posted
by Skilldrick
on Stack Overflow
See other posts from Stack Overflow
or by Skilldrick
Published on 2009-07-08T09:13:06Z
Indexed on
2010/04/08
13:43 UTC
Read the original article
Hit count: 294
I have a page with a row of about 10 img
s. For readability of the HTML, I want to put a linebreak in between each img
tag, but doing so renders whitespace between the images, which I do not want. Is there anything I can do other than break in the middle of the tags rather than between them?
Edit: Here is a screenshot of what I have so far. I would like the book spine images to display in random combinations, using PHP. This is why I need separate img
tags.
© Stack Overflow or respective owner