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.

Archive /

Our old forums are still available as a read-only archive.

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

Using <p align="">


Go to End


2 Posts   2048 Views

Avatar
JoGiles

9 Posts

24 July 2007 at 10:16pm

Hello,

Incredibly small issue - the CMS creates paragraphs using <p align="left|right|center|justify">, but this is deprecated when trying to be HTML4.01 valid. The workaround is to either use a CSS file, or to write something like <p style="text-align:left;">.

You can find more info here:
http://www.w3.org/TR/html4/present/graphics.html#h-15.1.2

I only started using silverstripe today - am quite impressed with the ease of developing a new website with a modified template.

Cheers,
Jonathan Giles

Avatar
Jedateach

Forum Moderator, 238 Posts

24 July 2007 at 10:40pm

Edited: 24/07/2007 10:41pm

You're absolutely right Jonothan. This paragraph alignment is part of TinyMCE, the open source WYSIWYG editor we use in the SilverStripe CMS.

TinyMCE is quite customizable, so it may just be a matter of turning this 'outdated' feature off.