Justify align body text?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
User avatar
fred2028
Registered User
Posts: 123
Joined: Mon Aug 22, 2005 11:49 pm
Location: Canada
Contact:

Justify align body text?

Post by fred2028 » Sat Jul 05, 2008 1:48 pm

Hi, I have a phpBB3 forum with The Vista Blue theme installed (http://www.fredfx.com/forums). The body text of posts are center aligned, which is kinda annoying. How do I edit my template files to make it justify aligned? Thanks!

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51391
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Justify align body text?

Post by Brf » Sat Jul 05, 2008 2:26 pm

It looks to me that everything on your forum is centered.
What happens if you take out the <center> tags you have before and after the google stuff?

User avatar
fred2028
Registered User
Posts: 123
Joined: Mon Aug 22, 2005 11:49 pm
Location: Canada
Contact:

Re: Justify align body text?

Post by fred2028 » Sat Jul 05, 2008 2:45 pm

Brf wrote:It looks to me that everything on your forum is centered.
What happens if you take out the <center> tags you have before and after the google stuff?
No I'm fine with the forum being centered, but if you go view a post, you will see that all the text in the post's body is centered too. This only happens in IE, in Fire Fox everything is left aligned.

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: Justify align body text?

Post by Raimon » Sat Jul 05, 2008 3:51 pm

It is cased by the center tags , you didn't close them.
open overall_header.html

search:

Code: Select all

<center><script type="text/javascript"><!--
google_ad_client = "pub-8660931420494881";
/* 728x90, created 5/7/08 */
google_ad_slot = "1200217520";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br><script type="text/javascript"><!--
google_ad_client = "pub-8660931420494881";
/* Forums */
google_ad_slot = "1034530580";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><center><br>
replace with:

Code: Select all

<div style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-8660931420494881";
/* 728x90, created 5/7/08 */
google_ad_slot = "1200217520";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br /><script type="text/javascript"><!--
google_ad_client = "pub-8660931420494881";
/* Forums */
google_ad_slot = "1034530580";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><br />
open overall_footer.html

search:

Code: Select all

<center><a href="http://www.hosting.fredfx.com" target="1"><img src="http://secure.webhostingpad.com/idevaffiliate/banners/hostingpad_728x90-new.gif" width="728" border="0" height="90"></a></center>

replace with:

Code: Select all

<div style="text-align: center;"><a href="http://www.hosting.fredfx.com" onclick="window.open(this.href);return false;"><img src="http://secure.webhostingpad.com/idevaffiliate/banners/hostingpad_728x90-new.gif" width="728" height="90" /></a></div>
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

User avatar
fred2028
Registered User
Posts: 123
Joined: Mon Aug 22, 2005 11:49 pm
Location: Canada
Contact:

Re: Justify align body text?

Post by fred2028 » Sat Jul 05, 2008 4:03 pm

Raimon wrote:It is cased by the center tags , you didn't close them.
open overall_header.html

search:

Code: Select all

<center><script type="text/javascript"><!--
google_ad_client = "pub-8660931420494881";
/* 728x90, created 5/7/08 */
google_ad_slot = "1200217520";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br><script type="text/javascript"><!--
google_ad_client = "pub-8660931420494881";
/* Forums */
google_ad_slot = "1034530580";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><center><br>
replace with:

Code: Select all

<div style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-8660931420494881";
/* 728x90, created 5/7/08 */
google_ad_slot = "1200217520";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br /><script type="text/javascript"><!--
google_ad_client = "pub-8660931420494881";
/* Forums */
google_ad_slot = "1034530580";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><br />
open overall_footer.html

search:

Code: Select all

<center><a href="http://www.hosting.fredfx.com" target="1"><img src="http://secure.webhostingpad.com/idevaffiliate/banners/hostingpad_728x90-new.gif" width="728" border="0" height="90"></a></center>

replace with:

Code: Select all

<div style="text-align: center;"><a href="http://www.hosting.fredfx.com" onclick="window.open(this.href);return false;"><img src="http://secure.webhostingpad.com/idevaffiliate/banners/hostingpad_728x90-new.gif" width="728" height="90" /></a></div>
Oh sick, awesome thanks! It works perfectly now!

Locked

Return to “[3.0.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 19 guests