Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: rockinaway - elokuu 31, 2006, 12:34:44 IP

Otsikko: Misalignment!
Kirjoitti: rockinaway - elokuu 31, 2006, 12:34:44 IP
SMF Version: SMF 1.1 RC3
I have been editing the header of Aa_New_Damage and well I have a misalignment...

I have uploaded the picture of the error... it is here http://www.adminfuel.com/error.JPG.. and the code for that is shown below:

<!-- Added Header -->
<a name="top"></a>
<div align="center">
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="54" height="261" valign="top"><img src="', $settings['images_url'], '/forum_body_01.jpg" width="54" height="261" alt="" /></td>
<td width="910" height="192" align="left" valign="top">
<table width="910" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="918" height="279" background="', $settings['images_url'], '/forum_body_02.jpg" align="center" valign="bottom">
<div class="title-text" style="padding:0 0 18px 0;"><img src="http://www.adminfuel.com/forum/logo.gif"/></div>
</td>
</tr>
<tr>
<td width="910" height="18" align="left" valign="middle" background="', $settings['images_url'], '/forum_body_04.jpg">
'; template_menu();
echo '
</td>
</tr>
<tr>
<td width="910" height="35"><img src="', $settings['images_url'], '/forum_body_05.jpg" width="910" height="35" alt="0" /></td>
</tr>
</table>
</td>
<td width="45" height="192" valign="top"><img src="', $settings['images_url'], '/forum_body_03.JPG" width="54" height="261" alt="" /></td>
</tr>
</table>
<!-- END header -->
<!-- BEGIN content sections -->
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1000" align="center" valign="top" class="content-bg">
<!-- End added header -->
<table width="860" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="860" align="left" valign="top">
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>';


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>';

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
</td>';


Thats got some extra on it

So any help?
Otsikko: Re: Misalignment!
Kirjoitti: rockinaway - elokuu 31, 2006, 01:43:25 IP
BuMp
Otsikko: Re: Misalignment!
Kirjoitti: rockinaway - syyskuu 01, 2006, 04:55:30 AP
Bump Bump - anyone?
Otsikko: Re: Misalignment!
Kirjoitti: Deaks - syyskuu 01, 2006, 07:42:06 AP
Please do not bump a thread.

I went to your error image and I visited your site (http://www.adminfuel.com/forum/) and it seems to work finr for me
Otsikko: Re: Misalignment!
Kirjoitti: rockinaway - syyskuu 01, 2006, 08:05:07 AP
The site you visited was this wasnt it?

http://www.adminfuel.com/forum/

In FireFox some people have said it isnt right.. and on my other computer it isnt... on this computer it is fine.
Otsikko: Re: Misalignment!
Kirjoitti: Deaks - syyskuu 01, 2006, 11:07:29 AP
if this is the case the problem comes with there resolution you will need o modify the index.template.pp to a fixed width and not a percentage width
Otsikko: Re: Misalignment!
Kirjoitti: rockinaway - syyskuu 01, 2006, 12:17:11 IP
But it isnt a percentage.. it is fixed
Otsikko: Re: Misalignment!
Kirjoitti: Deaks - syyskuu 01, 2006, 02:05:52 IP
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
even that bit :)
Otsikko: Re: Misalignment!
Kirjoitti: rockinaway - syyskuu 01, 2006, 03:53:38 IP
oooo :D

What would I change it too?.. but that is the username part...s that what is affecting it?

EdIT - I also asked at the SitePoint forums and here is their reply..

http://www.sitepoint.com/forums/showthread.php?p=3024287&posted=1#post3024287
Otsikko: Re: Misalignment!
Kirjoitti: Deaks - syyskuu 01, 2006, 03:59:46 IP
search through the index.template.php and change all the widths of 100% to 1000 but only in the <table> sections
Otsikko: Re: Misalignment!
Kirjoitti: rockinaway - syyskuu 03, 2006, 01:44:49 IP
That didn't work..
Otsikko: Re: Misalignment!
Kirjoitti: Freiluft - syyskuu 04, 2006, 05:09:16 IP
Do you have the width fixed in style.css?
Otsikko: Re: Misalignment!
Kirjoitti: rockinaway - syyskuu 05, 2006, 04:17:10 AP
All this was wrong.. it was simple.. all I hd to do was resize the 2 side images in header to 45 instead of 54.. and all was fixed :D