MyBB Community Forums

Full Version: Logo pic extends beyond the forum body
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all I have a simple problem that I can't seem to work out how to fix, and am hoping someone can help me.

My logo is a large picture that I wish to take up the whole top of the forum (I have the forum width set to 50%). On computers with different resolutions the image extends beyond the main forum body (see attached pic).

Can anyone suggest a way to "crop" the picture so it only stays inside the forum body? I have searched around in this forum and couldn't find anyone else having this problem.

Thanks in advance for all your help.
Lestats
In logo you have something like:
<a href="..."><img src=...>. If you have too big picture you can cut image (even in Paintbrush) or better: Put this image to
<a href="..." style="background: #xxx url(url_to_your_image)>
and don't use "<img" clause.
But you can have some problem with this. You need set witdh and height, and in <a> and text of this must be a (space)

example

in logo css definition
a:link {
width:300px;
height:200px;
color: #1C8C00;
text-decoration: none;
background:#FFFFFF url(image.gif);
display:block;
}

<a href="http://page.php"> </a>
Thanks for your reply Patrick, I am unsure where I should put that code.

I set the logo path in the ACP and can't find where the logo is added in any of the code (I am new to php Smile ). Where is the logo css definition?
See attached image.
Yes that would be a perfect way to do it Penguin, now I just got to work out how... Smile

ah I think I am finally getting it, can I add this code to the header section in the edit/modify template part of the ACP?
Lestats Wrote:ah I think I am finally getting it, can I add this code to the header section in the edit/modify template part of the ACP?

this template (and others) give you chance for better customizing your forum. you can add ad's, new links and what you want - it's a power of mybb Smile

but remember: header & footer is showed on all pages, but rest of templates is showed only in some context (e.g. index page or in forumview).
If you remember about this, you can choice where you want put something.
Have a good fun