Extra <p> in WYSIWYG

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 22, 2009   (RSS)

By ThreeTree - August 21, 2009 - edited: August 21, 2009

I know that I addressed this in the past but hope there is now an answer. How do I eliminate the <p> that is inserted when the the WYSIWYG field is needed? Deleting it in html view doesn't work and content in that area needs WYSIWYG features. Having that <p> is a problem for the layout.

I know that I can insert a CSS command for the heading but am concerned that this creates an opportunity for confusion for my client who will be doing her own updating.

Re: [ThreeTree] Extra <p> in WYSIWYG

By Chris - August 22, 2009

Hi ThreeTree,

How about removing the first <P> from a field on your viewer page?

http://www.interactivetools.com/forum/gforum.cgi?post=63416#63416

Or specifying that <P> tags shouldn't add any margins?

http://www.interactivetools.com/forum/gforum.cgi?post=61798#61798

Or knocking out margins of certain <P> tags with descendant selectors?

.disablePmargins P { margin-top: 0; margin-bottom: 0; }

<div class="disablePmargins"><?php echo $record["wysiwyg_field"] ?></div>

Do any of those solutions work for you?
All the best,
Chris