Extra <p> in WYSIWYG

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

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

Re: [chris] Extra <p> in WYSIWYG

Tried this:
<span class="page_sections"><?php echo $contractorsRecord['heading_1'] ?><br/></span>
with heading_1 defined as text field, followed by WYSIWYG field and it works without inserting extra space. Don't understand why but I'll take it.