MyBB Community Forums

Full Version: All post text display is centered ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
When go to view posts/threads, the text is all centered on the page.

Dont remember changing anything that controls that display.

How to fix ?

URL would be helpful... Smile
(2011-04-21, 09:07 PM)MattRogowski Wrote: [ -> ]URL would be helpful... Smile
www.akmblog.org
Thanks !
Change the body text-alignment in global.css

body {
	background: #efefef;
	color: #000;
	font-family: Verdana, Arial, Sans-Serif;
	font-size: 13px;
	text-align: center; /* IE 5 fix */
	line-height: 1.4;
}

You're using a lot of deprecated and non XHTML compliant code there too.

Get rid of the <center> tags and use CSS to center, <BR> should be <br /> to be XHTML valid.
(2011-04-21, 10:32 PM)AJS Wrote: [ -> ]Change the body text-alignment in global.css

body {
	background: #efefef;
	color: #000;
	font-family: Verdana, Arial, Sans-Serif;
	font-size: 13px;
	text-align: center; /* IE 5 fix */
	line-height: 1.4;
}

You're using a lot of deprecated and non XHTML compliant code there too.

Get rid of the <center> tags and use CSS to center, <BR> should be <br /> to be XHTML valid.
When change the 'center' to 'left' in...

body {
background: #efefef;
color: #000;
font-family: Verdana, Arial, Sans-Serif;
font-size: 13px;
text-align: center; /* IE 5 fix */
line-height: 1.4;
}

at...

/public_html/forum/cache/themes/theme1/global.css
/public_html/forum/cache/themes/theme2/global.css

...the whole page (top title, navigation headers, etc) aligns left.

Would like only the post text to align left.

Also, not finding the non xhtml, like <center>, in those files.
Hope am looking at the correct files.
check that in #container, if there exists text-align:center; change it to left/right as per your suitability, and also check "#content -> this must be auto"
(2011-04-22, 01:19 AM)grave Wrote: [ -> ]check that in #container, if there exists text-align:center; change it to left/right as per your suitability, and also check "#content -> this must be auto"
Checked, and settings in #container and #content are left and auto, respectively, as you noted.

ahhaa....did you removed...
<div id=container> from header....
if yes, than it has to be in "body" css..text-align:center; as posted above...

these texts are affected only from either container or body unless you have not specifed same in thead and tcat..
Make sure there is nothing code like:

<div align="center">

in any of your theme templates especially showthread ones or if they are not, just edit CSS of your theme as users posted above.
The other code I suggested to change is in the templates, probably should have made that more obvious.
Pages: 1 2