Support » How-To and Troubleshooting » [Resolved] Make Header An Image

[Resolved] Make Header An Image

  • myrnatheminx


    I’ve been working on this for a while and can’t make it work. I want to add an image to my header and there is something wrong with my code. I have read through the many threads (I know!) on this subject but it looks like I need some individual help. My code now is:

    #header {
    background-repeat:no-repeat; }
    #headerimg {
    margin: 7px 9px 0;
    height: 192px;
    width: 740px; }

    My header.php

    <div id=”header” onclick=”location.href='<?php bloginfo(‘url’); ?>’;” style=”cursor: pointer;”>
    <div id=”headerimg”>
    <h1 class=”blogtitle”><?php bloginfo(‘name’); ?></h1>
    <p class=”description”><?php bloginfo(‘description’); ?></p></div>

    I created the image smhead.jpg to be the same size as indicated in the CSS code and it is in the images directory. I just cant get the new header image to show up.

    Thanks–if I figure this one out, I promise to stay out of the forums for a couple of weeks 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • Give us a link to your site.

    There should not be a forward slash before *images* in the URI.
    But OT that set up is going to be inconsistent across platform. I would ditch the margins.






    Thanks—made both changes and I at least have the header there now. Appreciate the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Make Header An Image’ is closed to new replies.