Position Header Banner and Make It Clickable
-
Hi,
My site is: http://latinophysiciansofca.org/
I’m trying to position a banner ad on my site to the far left of the container, but it’s hidden partway underneath the navigation bar. And I can’t get it to move via css.
To header.php, I’ve added:
<head>
<div class=”headerbanner”><img src=”<?php bloginfo (‘template_directory’); ?>/images/LHC-Banner-Cropped.jpg” alt=”<?php bloginfo(‘name’); ?>” /></div>And to css.style, I’ve added:
.headerbanner{
width: 575px;
height: 140px;
position: relative;
right: 550px;
top: 5px;
}I’m not sure *where* exactly in either of these files I should be placing these things, or if it even matters.
The only time I can get the banner ad to work somewhat properly (in that it becomes clickable and goes to the correct link) is when I add a “float: left” or “float: right” to the css. But then the ad ends up all the way over to the left or right of my site, which of course isn’t what I want.
What am I missing? Is there a simpler way for me to do this?
Thanks for any help!
The topic ‘Position Header Banner and Make It Clickable’ is closed to new replies.