Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Surferbird - huhtikuu 15, 2006, 11:40:42 AP

Otsikko: How to kill this gap ?
Kirjoitti: Surferbird - huhtikuu 15, 2006, 11:40:42 AP
I have a white gap below my toplogo as on this image added here, where is the place to kill the gap?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsalamatutka.webspacedepot.net%2Fstuff%2F1.gif&hash=f878513ff103e1c6b82af23c3e1397bc8383426e)

Otsikko: Re: How to kill this gap ?
Kirjoitti: Dannii - huhtikuu 16, 2006, 12:02:39 AP
What is the html and css code for that?
Is that the default SMF theme?
Otsikko: Re: How to kill this gap ?
Kirjoitti: Surferbird - huhtikuu 16, 2006, 05:14:56 AP
Yes, sorry for not mentioned it, it is deafult theme slightly modified for logopic as it show up, version is 1.1 rc2.


Lainaus käyttäjältä: eldacar - huhtikuu 16, 2006, 12:02:39 AP
What is the html and css code for that?
Is that the default SMF theme?
Otsikko: Re: How to kill this gap ?
Kirjoitti: Dannii - huhtikuu 16, 2006, 05:19:12 AP
<td class="catbg" align="right">
<img src="http://www.simplemachinesforum.net/ThemeImages/newsite/smflogo.gif" style="margin: 2px;" alt="">
</td>
Your code is probably similar. Remove the style="margin: 2px;"
This will be in index.template.php
Otsikko: Re: How to kill this gap ?
Kirjoitti: Surferbird - huhtikuu 16, 2006, 05:36:11 AP
This is removed totally and changed!

I used this advice to modify index.template.php http://www.simplemachines.org/community/index.php?topic=81177.0
Look at this then you may get a better pic of the place where the gape come from

My index.template.php looks like this, i think this is the place where smf logo is removed from?
</head>
<body>
<div id="box" style="padding: 15px;">';


echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>';

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 0px;" alt="', $context['forum_name'], '" />';

echo '
</td>
</tr>
</table>';

Otsikko: Re: How to kill this gap ?
Kirjoitti: Wolfenrook - huhtikuu 16, 2006, 05:55:11 AP
That looks to me like it is been caused by top padding on the titlebg area.
Otsikko: Re: How to kill this gap ?
Kirjoitti: Surferbird - huhtikuu 16, 2006, 06:05:45 AP
Any fix or advice for it? Do you want whole file upped?