-3

I'm trying to find a way to force a specific screen size to the mobile header view. Now, when I go to my webshop on an Ipad, you see the desktop screen, which I don't want. I want the mobile/tablet view but it seems like the screen is slightly too big for this.

How can I accomplish this with CSS?

Thanks in advance.

This is what I want This is what it is now

1 Answers1

0

When you code your CSS add a media query i.e.

    /*DESKTOP SIZE DISPLAY*/
    
    @media screen and (min-width : 815px){
        
        .className{
            
            position: fixed;
            top:0;
            height:40px;
            width:100%;
             
        } 
}
mister_cool_beans
  • 1,441
  • 1
  • 8
  • 19