PRACTICE SET 7(APC)

 HTML


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PRACTICE SET 7</title>
    <link rel="stylesheet" href="STLE.CSS">
</head>
<body>
   <div></div>
</body>
</html>

CSS

div{
    height: 250px;
    width: 250px;
    background-color: chocolate;
}

@media (max-width:300px) {
    div{
        background-color: green;
    }
}

@media (min-width:300px) and (max-width:400px) {
    div{
        background-color: pink;
    }
}


@media (min-width:400px) and (max-width:600px) {
    div{
        background-color: red;
    }
}


@media (min-width:600px) {
    div{
        background-color: blue;
    }
}


OUTPUT

I CAN'T SHARE IT.
YOU CAN TRY IT ON YOUR CODE EDITOR

Comments

Popular posts from this blog

Create,Read,Drop,Insert One and many, Ordered,Unordered insert in mongoDB

Comparison in Javascript

String Methods In Javascript