Need help: How to make my banner clickable

Discussion in 'HTML & Website Design' started by Nystul, Apr 17, 2009.

  1. #1
    Been trying for ages, just cant seems to make it work : )) will appreciate some kind of help

    in my style

    #branding h1 {
    	font:17.8em /*	Height of banner */Georgia, "Times New Roman", Times, serif;
            text-indent:-9999px;
            background: url(http://mysite/image.jpg) no-repeat;
    	}
    
    .branding a {
    display: block;
    height: 100%;
    width: 100%;
    }
    Code (markup):
    in my header.php

    <div id="branding" class="left">
    <a href="homepage link">
               <h1><a href="<?php echo get_option('home'); ?>/">Titile</a></h1>
    </a>
    </div>
    Code (markup):
    Help ? heh

    Thanks in advance
     
    Nystul, Apr 17, 2009 IP
  2. Kunalbhatia

    Kunalbhatia Active Member

    Messages:
    296
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Instead of using php, just use the img tag, use the height and width attributes and wrap an <A href> tag around it.
     
    Kunalbhatia, Apr 17, 2009 IP