+ Reply to Thread
Results 1 to 2 of 2

Thread: PHP coding for banner header

  1. #1
    bookwise is offline x10Hosting Member bookwise is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    16

    Question PHP coding for banner header

    Hi I want to right align a banner in the header of my website but I am having trouble with it. Would someone help me please?

    Original header code in wordpress blog is:

    <div id="header">
    <h1 id="blog-title"><span><a href="<?php bloginfo('home') ?>/" title="<?php echo wp_specialchars( get_bloginfo('name'), 1 ) ?>" rel="home"><?php bloginfo('name') ?></a></h1></span>
    <div id="blog-description"><?php bloginfo('description') ?></div>
    </div><!-- #header -->


    I have a function which I use in the footer to get a rotating banner. When I put this into the original header code it works but I have no idea how to get it properly aligned

    <?php if (function_exists('dfrad')) { echo dfrad('ad_mine_468x60'); } ?>

    See header here
    http://blog.toycollectornz.com/

    Thanks

  2. #2
    Scoochi2's Avatar
    Scoochi2 is offline x10 Sophmore Scoochi2 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Southport!
    Posts
    185

    Re: PHP coding for banner header

    In your CSS (style sheet), add this:
    Code:
    div #header {
    right: 0.5em;
    }
    If you already have a div #header or just a #header section, then you don't need to add that bit in, just add the right: 0.5em; bit.
    Basically, it will move anything in that div over to the right. Play around with the 0.5 though. A larger value will move the banner further away from the edge. So 10em will be a lot different to 0.1em
    If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:

+ Reply to Thread

Similar Threads

  1. Places to learn php
    By JaWasabi in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 01-13-2009, 02:03 AM
  2. php errors galore
    By DMG Online in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 05-17-2008, 06:23 AM
  3. php problem
    By himgar in forum Free Hosting
    Replies: 1
    Last Post: 02-22-2008, 02:41 AM
  4. Cambios IMPORTANTES en PHP.
    By Fedlerner in forum Noticias y Anuncios
    Replies: 1
    Last Post: 11-06-2007, 11:13 AM
  5. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers