
Originally Posted by
boogyman
Traq - In the future, please do not encourage the use of <br> tags for use in the wrong context.
I agree that it's not the only -or even "best"- way to do it, but I don't think it is necessarily inappropriate to use a line break in this case. I'm certainly not dismissing your point; css is the "ideal" solution. But by looking at only a snippet of code, it's not clear if this image is the only one that padding is needed on - other images may need to be left with no (or default) padding. In unique situations like this, I sometimes find it more convenient to add spacing by using a line break - and though it may not be the most desirable solution, it does work, it can save some time and it's not invalid or "wrong" in any way.
In my earlier response, I did consider a second example using css. Because of the OP's misunderstanding of the <p> tag, I wasn't sure if it would be more confusing than helpful, and so I decided to recommend minimal changes to the existing markup. A better solution might be:
Code:
...
<a href="mailto:laureen@yogamoves.net">laureen@yogamoves.net</a><br />
<img src="img/contactpg.jpg" alt="contact image" style="margin: 0 auto; padding-top: 1em;" />
...
I'll be sure to elaborate more on my suggestions in the future. Thanks!
Bookmarks