Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8867315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:59:50+00:00 2026-06-14T16:59:50+00:00

I have a div element that I want to hide when the width of

  • 0

I have a div element that I want to hide when the width of the browser is less than or equal to 1026px. Is this possible to do with the css: @media only screen and (min-width: 1140px) {} If it isn’t possible with css, Is there any alternative?

Extra info:
When the div element is hidden, I don’t want a blank white gap. I’d like the page to flow as it would if I deleted the div element entirely from the code.

The div I am hiding is <div id="fadeshow1"></div>.

HTML5 Doctype.

I used javascript to place a gallery into that div.

I want it to look like this when it is bigger than 1026px width: https://i.stack.imgur.com/REBPi.png

I want it to look like this when it is less than 1026px width:
https://i.stack.imgur.com/XdiL4.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:59:51+00:00Added an answer on June 14, 2026 at 4:59 pm

    You can do this with CSS:

    @media only screen and (max-width: 1026px) {
        #fadeshow1 {
            display: none;
        }
    }
    

    We’re using max-width, because we want to make an exception to the CSS, when a screen is smaller than the 1026px.
    min-width would make the CSS rule count for all screens of 1026px width and larger.

    Something to keep in mind is that @media queries are not supported on IE8 and lower.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a flex app that I want to hide in a div until
I have a fixed width element that I want to essentially shoot off the
I want to hide a DIV element after the previous effects/movements have completed. If
I have a DIV element that appears when a certain action is performed. For
I have an element that serves as the banner on my website. This banner
I want to make a CSS only speech bubble. So far, I have this...
I have some JQuery code that shows or hides a div. $(div#extraControls).show(); // OR
Hi i have this html code which shows an input field: <div data-role=content data-theme=a>
I have a menu with some buttons (anchors). I want that when a certain
I have a situation that i have a hidden div with two input elements

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.