Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have a menu bar in html page, it should display only if the
screen resolution is 800x400px. how to achieve this using css3/css only not by using javascript.
Posted
Comments
Bernhard Hiller 24-Apr-14 3:52am    
Oh yes: screen resolution. I like those guys whoexpect me to use the browser in maximized/full screen mode only. As if there was no other reason for a big montior...

1 solution

1. Google "Responsive web design" and "css media queries".
2. Do some reading.
3. Take a look at this: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries[^]

As mentioned above, if you use the word 'resolution', you are already in trouble.
If you start by step #3, chances are you'll have to go back to #1 and #2 in order to understand why you have to do what you have to do.

Have a nice day,

Pablo.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900