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:

Design by 7dana.com

take out:

<{$xoops_banner}> 

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

Then replace:


Design by 7dana.com

with

Design by 7dana.com

that should work for you if not let me know

NOTE: by taking out <{$xoops_banner}>  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

377 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 377


more...

Donat-O-Meter

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

Latest GitHub Commits