View Single Post
Old 08-22-2023, 02:21 PM   #4
jwes
Connoisseur
jwes began at the beginning.
 
Posts: 77
Karma: 10
Join Date: Jul 2023
Device: none
Quote:
Originally Posted by KevinH View Post
Okay, Your html code is invalid. You have an img nested inside a block element div inside a span inside a p tag with none of the closing tags being properly present.

This leads to tag paths being different since Preview fixes all of that whereas CodeView can not.
So there is no way to actually sync anything between that image and anything following it.

Simply run MendHTML by right clicking on the CodeView window. Then syncing with Preview will work just as expected.
I did have a div inside a p tag, but the closing tags were all there (wouldn't there be an error if they weren't?). Is it an error to have a div inside a p? Splitting the text into two paragraphs does fix the problem, but the text now doesn't flow the way I want with one paragraph that starts above the image and flows alongside the image.

SOLVED - I changed the div to span and now it works.

Last edited by jwes; 08-22-2023 at 02:35 PM.
jwes is offline   Reply With Quote