I can't get my logo to position to the far right

Started by scubasteve1975, September 27, 2009, 04:33:47 AM

Previous topic - Next topic

scubasteve1975

Hi,

I went into index.template.php and typed ALIGN=RIGHT. What do I need to do to position it to the far right. IF you take a look at my forum, there is a space on the right that I want closed up.
www.esl9to5.com/forum [nofollow]



<a href="', isset($settings['logo_url_redirect']) ? $settings['logo_url_redirect'] : $scripturl, '"><img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" /></a>';

   echo '
            </td>
            <td align="right" class="catbg">
               <a href="', isset($settings['smflogo_url_redirect']) ? $settings['smflogo_url_redirect'] : $scripturl, '"><img src="', $settings['images_url'], '/smflogo.gif" style="margin: 0px;" alt="" ALIGN=RIGHT/></a>
            </td>
         </tr>
      </table>';

Jerry

I think it is because of the stylesheet, it adds 10px padding left and right for class="catbg"
try
<a href="', isset($settings['logo_url_redirect']) ? $settings['logo_url_redirect'] : $scripturl, '"><img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" /></a>';

   echo '
            </td>
            <td align="right">
               <a href="', isset($settings['smflogo_url_redirect']) ? $settings['smflogo_url_redirect'] : $scripturl, '"><img src="', $settings['images_url'], '/smflogo.gif" style="margin: 0px;" alt="" ALIGN=RIGHT/></a>
            </td>
         </tr>
      </table>';
I just removed class="catbg" from the <td> that has the logo in it, might fix the problem.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Antechinus

Problem with that is it will drop the image background that the catbg class has. ;)

I usually suggest people change this:

            <td align="right" class="catbg">
               <a href="', isset($settings['smflogo_url_redirect']) ? $settings['smflogo_url_redirect'] : $scripturl, '"><img src="', $settings['images_url'], '/smflogo.gif" style="margin: 0px;" alt="" /></a>
            </td>


to this:

            <td align="right" class="headerbg">
               <a href="', isset($settings['smflogo_url_redirect']) ? $settings['smflogo_url_redirect'] : $scripturl, '"><img src="', $settings['images_url'], '/smflogo.gif" style="margin: 0px;" alt="" /></a>
            </td>


and use this in style.css:

headerbg
{
background: url(images/catbg.jpg) #88A6C0 repeat-x;
color: #ffffff;
padding: 0;
}

Jerry



- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

scubasteve1975

Thanks Antechinus. I did what you suggested. Sorry to have not replied back with an update. I've been sick and I also had to reinstall my website. I tried using 2.0 and it gave me problems. It worked except that the white extends too far to the left. The image isn't that wide. Please take a look.v
url]http://www.esl9to5.com/forum/ [nofollow][/url]

Norv

Hello there,
do you still require assistance with this?
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: