1
niroht
center logo in default theme
  • 2004/8/31 3:47

  • niroht

  • Just popping in

  • Posts: 3

  • Since: 2004/8/31


Hi, I've looked and looked and couldn't find an answer (that worked) for my question.

I use the default theme. I removed banners. I can't get my logo to be centered correctly. Something to do with the right column probably although I'm not sure why the left column doesn't cause a problem.

Quote:





...


Is my code for the top logo. If you need more code or whatever please ask. I'd really like to be able to get my logo centered correctly.

2
incama
Re: center logo in default theme
  • 2004/8/31 4:13

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


Because the table hasn't any width it adjust his size to the picture which sits within. So centering the picture is of no use. You have define the table width to lets say 100% if you want to center the picture, or just center the table.

<table align="center" cellspacing="0">
<
tr id="header">
<
td id="headerlogo">
<
a href="<{$xoops_url}>/">
<
img src="<{$xoops_imageurl}>logo.jpg" width="512" height="115" alt="logo" />
a>
td>
tr>
...
table>


good luck

Incama

3
niroht
Re: center logo in default theme
  • 2004/8/31 4:38

  • niroht

  • Just popping in

  • Posts: 3

  • Since: 2004/8/31


Thanks, I've tried that though and it doesn't work. In fact, when I change it that way, it only aligns left. saying align center or right has no effect. I've tried width="100%" also, to no effect. It seems the right column extends all the way up and the header (where the logo is) sees that as the end of the page. align="center" works, it's just it's centered based on the fact that the right column is in it's way. If that makes any sence, hard to explain.

4
incama
Re: center logo in default theme
  • 2004/8/31 5:08

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


Could you post me the whole theme.html,,I guess it's a little thing that goes wrong.

btw, did you clear you cache in the template_c dir?

5
niroht
Re: center logo in default theme
  • 2004/8/31 5:25

  • niroht

  • Just popping in

  • Posts: 3

  • Since: 2004/8/31


I didn't clear the template_c cache manually, I have 'update module template .html files from themes/your theme/templates directory?' set to 'yes' which shows me changes I make; Like changing the align from left to right. Is that alright?

I got my logo to be correctly centered by removing the logo and makeing a banner with my logo picture. But that's only a work around, I'd rather not have to use my logo as a banner.

Here's my theme.html
Quote:












<{$xoops_sitename}> - <{$xoops_pagetitle}>




<{$xoops_module_header}>







 Forum  Home Page 







<{if $xoops_showrblock == 1}>



<{/if}>




<{foreach item=block from=$xoops_lblocks}>
<{include file="default/theme_blockleft.html"}>
<{/foreach}>





<{if $xoops_showcblock == 1}>











<{foreach item=block from=$xoops_ccblocks}>
<{include file="default/theme_blockcenter_c.html"}>
<{/foreach}>





<{foreach item=block from=$xoops_clblocks}>
<{include file="default/theme_blockcenter_l.html"}>
<{/foreach}>





<{foreach item=block from=$xoops_crblocks}>
<{include file="default/theme_blockcenter_r.html"}>
<{/foreach}>




<{/if}>



<{$xoops_contents}>



<{foreach item=block from=$xoops_rblocks}>
<{include file="default/theme_blockright.html"}>
<{/foreach}>







.:.



I don't use the width 100% or the align in the because it either has no effect or aligns it left no matter what. I've also tried moving the align from the div to the td, no change.

EDIT: also notice I've removed Quote:

Login

Who's Online

1436 user(s) are online (329 user(s) are browsing Support Forums)


Members: 0


Guests: 1436


more...

Donat-O-Meter

<{$xoops_banner}>
Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits