• Hello everyone.

    I have a problem with the header on my website. When running on desktop browser everything is ok, but when I switch on mobile, picture from right section and the site title showing up on right, outside of my website.

    Please take a look.
    I’ve changed a lot in the CSS, but the problem is still there.

    https://www.healthylivingmaster.com/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The problem is that you have some custom CSS which sets very exact positions of some elements. For example:

    #site-title {
    width: 408px;
    height: 50px;
    position: relative;
    bottom: 110px;
    left: 230px;
    }

    So on a cell phone that has a width of, say, 320px, the area for the site title is going to be wider than the width of the screen. Plus the left property of 230px is going to push the site title all the way to the right.

    One way to get around this is to use something called a media query. A media query sets rules which are activated at certain screen widths. For example, add this to the end of your custom CSS:

    @media screen and (max-width: 760px) {
       #site-title {
          bottom: 0;
          left: 0;
       }
    }

    You should see the site title now move back over to the left when you shrink the width of your screen down to about the general width of a tablet.

    Unfortunately, I don’t have the time to go through all of your web elements, but I think you get the idea of what you need to do. You may want to add another media query that activates at, say, 420px, for cell phone widths.

    Hi,

    Even I am facing same kind of issue. Everything was running fine. I put google adsense code for header sidebar area but its not reflecting now. I can see the ads in mobile view but not for desktop view. There must be some problem with this section. Please suggest.

    Darren

    Darren, the original poster’s header problem has nothing to do with Adsense. While there is are ads on the site, it’s in the body of the content, not in the header. And they display fine in desktop view, so it is unrelated to your problem. Please open a separate thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header problem’ is closed to new replies.