MyBB Community Forums

Full Version: Attribute CSS code to logo image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

I've just began using the Unreal Red theme - http://www.awesomestyles.com/mybb-themes...unreal-red - I've taken the login and search box out of the top and put in my own logo.

As far as I can tell the logo image has no attributes attached to it because the code is assuming the logo is the actual background?

How do I edit this code so I have more control over the actual logo image?

My forum: http://www.phoenixsupras.net/forum/

.tnav {
	background: #1E1E1E url(images/red/logo.jpg) no-repeat-x;
        width: 100%;
        color: ff0000;
	padding-bottom: 7px;
}

The actual source code for that part of the forum

<table class="tnav" align="center">

<tr>

<td class="tnav" width="100%"><a href="http://www.phoenixsupras.net/forum/index.php"><img src="http://www.phoenixsupras.net/forum/images/red/logo.jpg" alt="Phoenix Supras Forum" title="Phoenix Supras Forum" /></a></td>

</tr>

</table>

</td>

<div align="center">

<table class="tnav" border="0" cellspacing="0" cellpadding="0" align="center" style="border-top-width:0px">

<tr align="center">

<td class="navbar"><a href="http://www.phoenixsupras.net/forum/index.php">Home</a></td>

<td class="navbar"><a href="http://www.phoenixsupras.net/forum/search.php">Search</a></td>

<td class="navbar"><a href="http://www.phoenixsupras.net/forum/memberlist.php">Member List</a></td>

<td class="navbar"><a href="http://www.phoenixsupras.net/forum/member.php?action=logout&amp;logoutkey=9b79bdb2515a47c4d84ce08c0eca6f4c">Log Out</a></td>

</tr>

</table>

Many thanks!!
I'm not really sure what "control" you need. What exactly are you trying to achieve?
The only way I can control the width of the logo image is by what size I save it in Photoshop.

I want my image to be the width of that area, whatever computer resolution a user is using, and centered too.

The 100% on that first code is controlling the red underneath the logo with the Home Search Memberlist links.
Ignore.

I managed to do it by copying the code from another theme. It has worked Big Grin Big Grin.