PHP coding for banner header

bookwise

New Member
Messages
16
Reaction score
0
Points
0
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
 

Scoochi2

New Member
Messages
185
Reaction score
0
Points
0
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 :)
 
Top