Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: PoweredByPie on January 19, 2005, 07:30:36 PM

Title: Theme Help
Post by: PoweredByPie on January 19, 2005, 07:30:36 PM
I've made a new theme based off the default one.  It all works fine, except for one small error in IE only.  I made it thinner, and the top information is centered just fine in FireFox, but in IE it stays all the way over to one side.  I've tried many times to get the it to center, but the only way I cound get it to center centered the information with it.  Does anyone now where to change it to center it for IE?

http://tangibleabstract.info/forums/index.php
Title: Re: Theme Help
Post by: A.M.A on January 19, 2005, 07:42:08 PM
In your index.template.php could you please post 8 lines starting from:
// Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
Title: Re: Theme Help
Post by: PoweredByPie on January 19, 2005, 09:08:29 PM

echo '
<div id="headerarea" style="padding: 12px 30px 4px 30px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">';

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="750" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';

That 8 lines starting for where you said.
Title: Re: Theme Help
Post by: Kirby on January 19, 2005, 09:18:00 PM
<table cellspacing="0" cellpadding="0" border="0" align="center" width="750" style="position: relative;"> <--- try adding text-align: left; to the style...
Title: Re: Theme Help
Post by: PoweredByPie on January 19, 2005, 09:23:43 PM
Thanks, that worked.  I centered and used the text-align to get it to stay the left.  Thanks for the help.
Title: Re: Theme Help
Post by: Kirby on January 19, 2005, 09:24:48 PM
woohoo! :)