WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
[resolved] Header image placement (3 posts)

  1. Y0os
    Member
    Posted 1 year ago #

    Hello,

    wordpress.c-techniek.com

    I'm having problems with the alignment of the header image on my website. I edited the css to make both the image and menu fixed at the top, but can't figure out why the image is aligned wrong. I put a black border around it so see it's alignment, and it's way to much to the right. How do I fix this?

    My custom css:

    #header {
    position: fixed;
    top: 100px;
    width: 1260px;
    z-index: 201;
    background-color: #fff;
    }
    
    #site-title img {
    margin: 0px 0px 0px 0px;
    position: fixed;
    top: 0px;
    z-index: 201;
    height: 100px;
    width: 1260px;
    border: 1px solid #000000
    }
    
    #wrapper {
    max-width: 1260px;
    top: 100px;
    box-shadow: none;
    }
  2. paul.a.cunn
    Member
    Posted 1 year ago #

    Add this to your #site-title img area. Change the pixels as needed to get the site title image exactly where you want it.

    #site-title img {
     left: 0px;
    }
  3. Y0os
    Member
    Posted 1 year ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic