1
jimbofoxman
Centering Logo in the header????

I am having a problem centering the logo in my banner.

Here is the code from the theme.html file...
<td id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}
>images/logo.jpg" 
alt="Design by 7dana.com" border="0"></a></td>


Here is part of the CSS;
table#okvir
{
    
background-color:#CCCC99;
    
width792px;
//    width: 90%;
    
margin-top6px;
    
border-left3px solid #ffffff;
    
border-right3px solid #ffffff;
    
border-bottom3px solid #ffffff;
    
border-top3px solid #ffffff;
}


I put 792px cause it would fit a 800x600 screen resolution and the logo.jpg is 780px wide. I've tried adding an ALIGN statement in the TD tag. I tried adding a CENTER tag in the HTML file and I tried adding 6 pixels of color on each side of the image file to try and center it.

If you go to the site, there is always a few pixels right of the image that never go away. How can I get rid of this?

http://www.farmngarden.com/xoops

2
Arowana
Re: Centering Logo in the header????
  • 2005/12/6 20:36

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


in the file:

theme.html

right below your:

<td id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo.jpg" alt="Design by 7dana.com" border="0" /></a></td>

take out:

<td align="center" id="headerbanner"><{$xoops_banner}>&nbsp;</td>

this is adding that end box and will not allow you to center.

Then replace:


<td id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo.jpg" alt="Design by 7dana.com" border="0" /></a></td>

with

<td align="center" id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo.jpg" alt="Design by 7dana.com" border="0" /></a></td>

that should work for you if not let me know

NOTE: by taking out <td align="center" id="headerbanner"><{$xoops_banner}>&nbsp;</td> you will not be able to use the banner features in this template and you will have to relocate that to a location of your choice.
Arowana

3
jimbofoxman
Re: Centering Logo in the header????

DUH.......

Thanks, that did the trick!

4
Arowana
Re: Centering Logo in the header????
  • 2005/12/6 21:39

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


Very cool glad I could help
Arowana

Login

Who's Online

124 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 124


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits