I got some divs with a fixed width and height and they should push to left to all size of screen
What I want to achive is that based on resoulotion I want to show/hide some of them.
For example:
- 1024px - show 3 elements
- 1400px - show 5 elements
What is the best way to do this?
Here's my CSS:
.square{
width:200px;
height:200px;
background:salmon;
margin:5px;
float:right;
}
.container{
position:relative;
}
.wrapper-div{
position: absolute;
width: 1000px;
transform: translateX(-50%);
left: 50%;
}