HTML block - 'a' tag causes paragraph tag to be interrupted
thenickdude
Registered Users Posts: 1,302 Major grins
The tidying done for the HTML content block seems to think that <a> tags are block-level elements, because after saving the code, it causes them to break the paragraph tag that they are contained in.
For example, if I put this code into an HTML content block:
As soon as I save, the code is changed to:
That would be correct HTML tidying if <a> tags were block level elements, but they're not. This forces inline links to end up on a line below the paragraph, instead of inline where they should be.
For example, if I put this code into an HTML content block:
<p>Your photos look better at <a href="http://www.smugmug.com/">smugmug.com</a>!</p>
As soon as I save, the code is changed to:
<p>Your photos look better at</p> <a href="http://www.smugmug.com/">smugmug.com</a>!
That would be correct HTML tidying if <a> tags were block level elements, but they're not. This forces inline links to end up on a line below the paragraph, instead of inline where they should be.
https://www.sherlockphotography.org/
Please check out my gallery of customisations for the New SmugMug, more to come!
Please check out my gallery of customisations for the New SmugMug, more to come!
0
Comments