Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1062403

    Hi
    i need to hide an element (#headClaim) for medium and small screens.
    it works with my Firefox Developer and on some testdevices but not on my Ipad.
    If the Ipad is in landscape-mode it works.
    In Portrait-mode it doesnt.
    Why?

    /* für Viewport-Breiten von 0px bis einschließlich 319px */
    @media (max-width: 319px) {
    #headClaim {
     display: none !important;}
     
    }
    
    /* für Viewport-Breiten von 320px bis einschließlich 479px */
    @media (min-width: 320px) and (max-width: 479px) {
    #headClaim {
     display: none !important;}
    }
    
    /* für Viewport-Breiten von 480px bis einschließlich 767px */
    @media (min-width: 480px) and (max-width: 767px) {
    #headClaim {
     display: none !important;}
    }
    
    /* für Viewport-Breiten von 768px bis einschließlich 854px (Tablet S3) */
    @media (min-width: 768px) and (max-width: 854px) {
    #headClaim {
     display: none !important;}
    }
    
    /* für Viewport-Breiten von 855px bis einschließlich 1023px */
    @media (min-width: 855px) and (max-width: 1023px) {
    #headClaim {
     display: none !important;}
    
    }
    
    /* für Viewport-Breiten von 1024px bis einschließlich 1180px */
    @media (min-width: 1024px) and (max-width: 1180px) {
    } 
    
    /* für Viewport-Breiten von 1024px bis einschließlich 1180px */
    @media (min-width: 1181px) {
    }
    
    #1062430

    Hi Maskenzauber

    Yeah, iPad is sometimes a hassle to style for.
    Which iPad model is it? I guess the problem persists because your device has a width of e.g. 2000px in portrait mode which is a value you haven’t covered yet in your custom CSS.

    If you define a rule for higher pixel values it should work properly.

    Cheers
    Michael

    #1062529

    Hi,

    Thank you for contacting us.

    Please click this link to know what is your exact screen resolution.

    You can then use it in your media query to hide the elements.

    You may not see the changes until the cached files are cleared in your browser.

    Please perform the below steps to clear the browser cache:

    1. Disable “merging and compression” for CSS and JS files from Enfold > Performance.
    2. If a caching plugin is installed check the plugin settings and clear the cache and deactivate the plugins for testing purpose.
    3. Hard refresh by pressing Ctrl + Shift + F5 on your browser or press the F12 key to open chrome dev tools and right click on the refresh button and select “Empty Cache and Hard Reload”.

    Best regards,
    Vinay

    #1062777

    Hi
    Its 768×1024.
    Although i added this it does not work:

    * für Viewport-Breiten von 1024px bis einschließlich 1180px */
    @media (min-width: 1024px) and (max-width: 1180px) {
    #headClaim {
     display: none !important;}
    } 
    #1063319

    Hi Maskenzauber,

    Could you please give us a link to your website, we need more context to be able to help you. And please specify which element it is that you’re trying to hide.

    Best regards,
    Victoria

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.