0
Hi I want to use media query in css in div element to resize it's height according to device. Can anyone send me whole process?
3 Respuestas
+ 2
Ajay Rai try
@media screen and (min-width:600px){
div{
height:30vh;
}
}
Will change the div size if screen has a width of 600px and above
+ 1
Where is your attempt?
0
@media on screen and (max-width:600px) {
div{
height: 30vh;
}
}
This is reducing my background color