[drupal-support] How to center logo?

Mark Quinn cheeky.mini at gmail.com
Tue Feb 15 12:49:25 UTC 2005


On Tue, 15 Feb 2005 01:49:25 -0500, Rick <rick at whatonmars.com> wrote:
>  
>  
> Hi, I searched: logo "and" center, but got no hits on both words. I am
> setting up my website and simply want to center the logo. I am using Marvin
> and got rid of the backgroud image with css. Now I want to center the logo
> that is stuck to the left side. I spent an hour in the fourms search also
> and could not find this info. I spent hours searching the css sheets with no
> luck. Thanks for any info anyone can provide, I will take guesses at this
> point :) 
> Rick 
> WhatonMars.com 
> --
> [ Drupal support list | http://lists.drupal.org/ ]
> 
> 

This is really just an HTML question. Look at the beginning of the
marvinclassic.theme file (or the appropriate theme file for your
theme) and you'll see the code that generated the page header - table
def for the header are included below from marvinclassic. Edit it to
produce the html you need.

  $output .= "<table border=\"0\" style=\"width: 100%\"
cellpadding=\"8\" cellspacing=\"0\">\n";
  $output .= "  <tr>\n";
  $output .= "      <td>";
  if ($logo = theme_get_setting('logo')) {
    $output .= "<a href=\"./\" title=\"Home\"><img src=\"$logo\"
alt=\"Home\" /></a>";
  }
  $output .= "</td>\n";
  $output .= "      <td>&nbsp;" . theme_get_setting('secondary_links')
."</td>\n";
  $output .= "  </tr>\n";
 $output .= "  <tr>\n";
  $output .= "    <td colspan=\"2\" style=\"text-align: right;\">".
theme_get_setting('primary_links') ."</td>\n";
  $output .= "  </tr>\n";
  $output .= "</table>\n";



More information about the drupal-support mailing list