WordPress.org

Ready to get started?Download WordPress

Forums

Duena
Center header (6 posts)

  1. emilhein
    Member
    Posted 1 year ago #

    Hi. I would like to center my heaader logo. I know its not possible with float in the css, but is there a workaround for it?

    as it is now i can only adjust the header logo with the float (left og right)

    You can see my site here

    Thx

  2. Kuzmanov Boris
    Member
    Posted 1 year ago #

    Remove float: left; from #header .logo and add margin: 0 auto;

  3. emilhein
    Member
    Posted 1 year ago #

    i tried that several times:
    my #header .logo looks like this:

    #header .logo {

    background: transparent;
    border: none;
    padding: 0 0 20px 0;
    max-width: 100%;
    margin: 0 auto;
    }

    And it doesn't help :(

  4. Kuzmanov Boris
    Member
    Posted 1 year ago #

    What file you are editing? I just made changed to style.css using Chrome Dev Tool and it works just fine.

  5. emilhein
    Member
    Posted 1 year ago #

    i am editing style.css

  6. josma
    Member
    Posted 1 year ago #

    I have also tried this in style.css just like you say

    "background: transparent;
    border: none;
    padding: 0 0 20px 0;
    max-width: 100%;
    margin: 0 auto;"

    however, on a large desktop of a width of 1200px and above my logo floats lefts, but when I change my below 1200px it behaves like it should.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.