This is driving me crazy. I've searched and searched the forums for help and tried all the solutions with no avail.
I'm trying to add a <DIV> that floats right into my paragraphs of a page. here is the code that I paste into the Source window.
Simple enough....and it works AS LONG AS i save from the source window. If I try to re-edit my page or switch to the WYSIWYG, I get this:
Additionally, I used to get extra <P> tags generated before and after the <DIV> until i switched FCKConfig.EnterMode, FCKConfig.ShiftEnterMode both to BR.
I've set:
FCKConfig.ProtectedTags = 'div' ;
but my tags still get rearranged.
Any help is appreciated.
Thanks.
I'm trying to add a <DIV> that floats right into my paragraphs of a page. here is the code that I paste into the Source window.
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed a velit at lacus auctor egestas. Proin gravida. Praesent blandit augue sit amet leo. Quisque dictum ante.</p> <div class="floatRight" style="width: 200px;"><img width="200" height="150" alt="" src="/image/my-image.jpg" /> <p class="captionTitle">Caption Title</p> <p class="caption">Caption about the image you see above.</p></div> <p>Suspendisse imperdiet, nisl eleifend laoreet molestie, tellus lorem hendrerit nisi, quis ultrices nibh est in pede. Phasellus fringilla arcu tincidunt lectus. Pellentesque tincidunt tortor imperdiet velit. Vivamus congue purus eu lacus. Cras interdum eleifend odio.</p>
Simple enough....and it works AS LONG AS i save from the source window. If I try to re-edit my page or switch to the WYSIWYG, I get this:
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed a velit at lacus auctor egestas. Proin gravida. Praesent blandit augue sit amet leo. Quisque dictum ante.</p> <div class="floatRight" style="width: 200px;"><img width="200" height="150" alt="" src="/image/my-image.jpg" /></div> <-------------- DIV TAG JUMPS TO HERE MESSING UP MY LAYOUT <p class="captionTitle">Caption Title</p> <p class="caption">Caption about the image you see above.</p> <p>Suspendisse imperdiet, nisl eleifend laoreet molestie, tellus lorem hendrerit nisi, quis ultrices nibh est in pede. Phasellus fringilla arcu tincidunt lectus. Pellentesque tincidunt tortor imperdiet velit. Vivamus congue purus eu lacus. Cras interdum eleifend odio.</p>
Additionally, I used to get extra <P> tags generated before and after the <DIV> until i switched FCKConfig.EnterMode, FCKConfig.ShiftEnterMode both to BR.
I've set:
FCKConfig.ProtectedTags = 'div' ;
but my tags still get rearranged.
Any help is appreciated.
Thanks.
Re: <P> Tags added and <DIV> tag rearranged.