Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Divs in the editor


Go to End


2071 Views

Avatar
codemonkey88

Community Member, 24 Posts

24 October 2012 at 3:56am

I have created a 2 column layout in the editor using divs. When I press enter within these columns, it is creating new divs rather than <p> or <br> tags. Is there a setting to override this?

<code>

<div style ="float left; width:50%">
some text goes here
<div style ="float left; width:50%"> < --- This automated div is wrong! Should be either <br> or <p>
the next paragraph is here
</div>
</div>

</code>