WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
[closed] Centering header img (2 posts)

  1. naigotsoul
    Member
    Posted 1 year ago #

    Hello,

    I can't seem to figure out how to center the header img without using padding. I obviously don't want to use it because its inconsistent between devices. When i add a width property it just makes the img larger... Here's my css code thus far:

    .site-header img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    }

    .site-header {
    display: block;
    text-align: center;
    position: relative;
    }

    help is greatly appreciated

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.