When using HTML Area to edit an existing page all the text on that page appears centered, even though the Center button on the HTML Area tool bar is not pressed. Upon Submit the text content is saved correctly (no text is forced to be centered) but it s annoying.

Comments

xurizaemon’s picture

Hi ench0

The iframe which Xinha is embedded in inherits the CSS declarations from your theme. As a result, you probably get something like the following applied, which in most themes is used to centre the main content div.

body {
  margin: 0 auto ;
  text-align: center ;
}

I'm using D5 but presume the fix is similar for D6.

You should be able to work around this by using the field Page Style found at ?q=admin/settings/htmlarea

I use the following CSS here, which overrides the CSS from my theme (also providing a nice white background for text editing and some padding).

body { background-color: #fff ; background-image: none ; text-align: left ; margin: 10px ; }
xurizaemon’s picture

Assigned: Unassigned » xurizaemon
Category: bug » support
Status: Active » Closed (fixed)

ench0, I hope that answers your question. I'm closing this issue, but you can re-open it if you still need help.