Site logo in header… what am I doing wrong?
-
Hey everyone,
I’m not a dunce at CSS and the basics of coding, but maybe I’m denser than I thought. I’m trying to place my logo in the header using CSS. And if/when that works, using a sprite on hover.
I’m at a loss for why it won’t display. Right now I’m having to resort to placing the image code directly in the header (which is currently enclosed by comment tags). Any thoughts?
Header code:
<header id="header" class="pagewidth"> <hgroup> <!-- <h1 id="site-logo"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> <h2 id="site-description"><?php bloginfo('description'); ?></h2> --> <!-- <a href="<?php echo get_option('home'); ?>/"><img src="<?php echo get_option('home'); ?>/wp-content/uploads/2012/11/ofb_logo.png"></a> --> <span class="bg-img-test"></span> </hgroup>
Stylesheet:
#header { position: relative; height: 180px; border-bottom: solid 1px #ccc; } .bg-img-test { background: url('image_here.png'); }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Site logo in header… what am I doing wrong?’ is closed to new replies.