4
I would like some information on how to use media queries.
How do I define media of a website in the below?
- 2560 x 1440
- 2560 x 1080
- 1920 x 1080
- 1366 x 768
- 1280 x 1024
- 1280 x 768
Being that my site is extended the whole screen, it is a layout that the height doesn’t go down doing sidebar, and I pull the media through height.
Example:
@media screen and (min-height:768px) and (max-height:1080px){
...
}
Use the values 2560 x 1440
, 2560 x 1080
, 1920 x 1080
, 1366 x 768
and 1280 x 768
conflicts in media.
How to solve?
A note for other users: if the site scrolls vertically (which is not your case, by the text), you should use the
width
to make the wishes, and not theheight
. It only makes sense to calibrate the vertical media for things that have horizontal scrolling, (or none, as in the question) or for page-specific elements like navigation, etc., and not for the entire layout. In extreme cases, you can use width and height together in the same query, but it’s usually too much. Perhaps in the case of the specific question, it is the solution.– Bacco