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

  • SEARCH
  • Home
  • 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 7825419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:58:16+00:00 2026-06-02T08:58:16+00:00

I would be a simple css effect or js, but I don’t have found

  • 0

I would be a simple css effect or js, but I don’t have found solution yet.

my target to make a menu inside a div that when I resize my browser windows or the parent div, this set itself hidden and I need to set another div as visible that contain the same menu in horizontal orientation.

<div id="when_size_if_of_100px_visible_if_not_hidden">[menu item1 item2 item 3 item4]</div>

<div id="when_size_sup_of_100px_visible_if_not_hidden">
 menu  
 item1
 item2
 item3
</div>

I hope to be clear. thank for all your response.

  • 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-02T08:58:18+00:00Added an answer on June 2, 2026 at 8:58 am

    As newtron as said, you should use media queries to do this. You have only one content but it will be displayed in different manner based on the window size. Here is a working example http://jsfiddle.net/pomeh/Gdve3/

    The HTML code used is

    <ul>
        <li>menu A</li>
        <li>menu B</li>
        <li>menu C</li>
        <li>menu D</li>
    </ul>
    
    <div>
        Window width is lower than 500px !
    </div>
    

    And CSS code

    li {
        border: solid black 1px;
        width: 100px;
        display: inline-block;
    }
    
    div {
        display: none;
    }
    
    
    @media (max-width:500px) {
        li {
            display: block;
        }
        div {
            display: block;
        }
    }​
    

    Also notice that media queries are not supported on IE. For this purpose, you can use Respond.js Javascript library https://github.com/scottjehl/Respond

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

Sidebar

Related Questions

Let's say I have a simple CSS layout and my menu is a column
I figured this would be simple, but being new to SSRS I'm not sure.
In the web using c# would be simple System.Web.HttpUtility.HtmlDecode() but now I am using
i would like a simple help... i have a url like this: example.com/profile.php?id= &
I'm not sure how simple this would be, but I'm using a script which
This seems like it would be fairly simple, but I've been unable to find
I am performing a CSS transform: rotate on a parent, yet would like to
I have a simple style for my CSS that stretched my background beautifully in
I have created a LESS ( http://lesscss.org/ ) version of a simple css grid
What would a simple unit test look like to confirm that a certain controller

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.