Trouble aligning text with WYSIWYG I have added TinyMCE to work with one of my text formats, and I added the different alignment buttons. When I try to center some text it adds "text-align: center" to the p... but when I save it, it goes back to normal. I would like to fix that to be able to align text and images. I installed a module called WYSIWYG Filter and added "text-align" in Text properties... still doesn't work. I also added "p[style|text-align]" to the "HTML elements and attributes" section... still doesn't work.

Any ideas of what could I be missing?
...I'm using Drupal 7 BTW
If you're using the filtered HTML input format, that would be stripping it out.

If not, it sounds like your markup is weird. The way you describe it, what might work if it read &lt;p align="center"&gt; (not that I recommend this) reads &lt;p style="text-align:center"&gt;. I think WYSWIG editors tend to prefer classes to putting styles right in the markup, so I'd do something like &lt;p class="centered-text"&gt; and add .centered-text{ text-align:center } to your stylesheet.

I would double-check your site with a DOM inspector to make sure your style on your &lt;p&gt; isn't being overridden by a stylesheet. If nothing else works, you could use a different editor. jWYSIWYG, openWYSIWYG, Whizzywig, and nicEditor use align="wherever" instead of style="text-align:wherever" which might work (again, I don't recommend this, but it's a potential short-term solution. For reference, MarkItUp and WYMeditor don't offer alignment buttons, and CKEditor, FCKEditor, TinyMCE, and YUIeditor do it the "right" way, using style="")