Header image issue in mobile view

  • Unknown's avatar

    I think my header image (Ebony McFarland Print Designer) is a problem. When I look at my website in the mobile view, the header image is way out of view. The header image is under “site-branding a” in CSS. I wanted to center the header image but the “text-align:center” code wouldn’t work so I used “margin-left:320px.” I’m thinking that it’s not the right code to use. Is there a code that would fix this?

    My URL is https://ebonymcfarland.wordpress.com/

    My theme is Fontfolio

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, your header image is currently 721px wide, and phones in portrait orientation are typically 320px, so we will have to set things so that the image resizes to fit in the available space.

    First, find this in your custom CSS and remove it

    .site-branding a{
    	margin-left:320px
    }

    and then add the following

    .site-branding {
    	width: 100%;
    	text-align: center;
    }

    See what you think of this and let us know if there are any issues.

  • Unknown's avatar

    Hi thesacredpath:

    The code worked! Thank you very much.

  • Unknown's avatar
  • The topic ‘Header image issue in mobile view’ is closed to new replies.