• Hi,

    I’m building a wp page for a friend. Being a PHP noob and not very experienced in CSS, I failed to insert a simple <div> with a logo tag that’s supposed to sit at the left side of the header, partly outside of the 1-column layout. Where and what should I insert? I’m happy enough to have customized the page this far: http://www.crapgrass.com/

    Thomas

Viewing 5 replies - 1 through 5 (of 5 total)
  • I don’t know if your div#header is dinamically generated by your theme, so a solution that will work anyway is to put your <div> right after the <div class="hfeed" id="wrapper">, and define it an id and CSS rule as:

    #ID-OF-YOUR-DIV {
      position:absolute;
      top: 2px;
      left: 5px;
      z-index:10;
    }

    change the top and left value to match the desired position.

    Thread Starter thomas.tonictrix

    (@thomastonictrix)

    Thanks, this did the trick – at least in parts. I just noticed what I forgot to mention: the logo is also supposed to overlap the content section a little, which doesn’t work now, no matter how high the z-index of my <div> is. Same thing if I insert the <div> into the page template instead of the header file.

    z-index only work if the position rule is applied to the element.

    besides… dkret.js (located at: http://www.crapgrass.com/wsc69599828/testcamp/wp-content/themes/dkret3/library/js/) is messing with all images on the site… insted of using <div><img /></div> just use a <div></div> with background-url pointing to your image and width / height matching the image dimensions…

    Thread Starter thomas.tonictrix

    (@thomastonictrix)

    Yes, almost there! I moved the <div> to the main page layout instead of the header file, now it’s sitting right where it belongs. Thanks again rsirotheau!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘inserting a logo outside the layout’ is closed to new replies.