Computer Science, asked by poonamagrawalktl, 7 months ago

Which box will you use when a comparison has to be made?​

Answers

Answered by Sambhavs
23

Answer:

Where are boxes

Explanation:

Galat Refrigerator

&lt;! Doctype html&gt;</p><p>&lt;html&gt;</p><p>&lt;head&gt;</p><p>&lt;title&gt; Refrigerator &lt;/title&gt;</p><p>&lt;/head&gt;</p><p>&lt;body&gt;</p><p>&lt;div class="fridge"&gt;&lt;/div&gt;</p><p></p><p>&lt;style&gt;</p><p>body{</p><p>    margin: 0;</p><p>    height: 100vh;</p><p>    display: flex;</p><p>    align-items: center;</p><p>    justify-content: center;</p><p>    background: linear-gradient(floralwhite, wheat);</p><p>}</p><p></p><p>/* body */</p><p>.fridge {</p><p>    width: 24em;</p><p>    height: 38em;</p><p>    font-size: 10px;</p><p>    border-top: 1em solid #333;</p><p>    border-bottom: 1em solid #333;</p><p>    background: </p><p>        linear-gradient(</p><p>            to right,</p><p>            transparent 40%,</p><p>            gray 40%,</p><p>            silver 41%,</p><p>            dimgray 43%,</p><p>            transparent 43%, transparent 48%,</p><p>            gray 48%,</p><p>            silver 49%,</p><p>            dimgray 51%,</p><p>            transparent 51%</p><p>        ) no-repeat center / 100% 90%,</p><p>        linear-gradient(</p><p>            to right,</p><p>            darkgray,</p><p>            lightgray 10%,</p><p>            silver 40%, silver 45%,</p><p>            black 45%, black 46%,</p><p>            silver 46%, silver 80%,</p><p>            darkgray 90%,</p><p>            dimgray</p><p>        );</p><p>    border-radius: 4em / 0.5em;</p><p>    box-shadow: 0 0.5em 1em -0.5em rgba(0, 0, 0, 0.5);</p><p>    position: relative;</p><p>}</p><p></p><p>/* water supply */</p><p>.fridge::before {</p><p>    content: '';</p><p>    position: absolute;</p><p>    width: 6em;</p><p>    height: 7.5em;</p><p>    background: </p><p>        radial-gradient(</p><p>            circle at 88% 10%,</p><p>            limegreen, limegreen 0.2em,</p><p>            transparent 0.2em</p><p>        ),</p><p>        radial-gradient(</p><p>            circle at 75% 10%,</p><p>            hotpink, hotpink 0.2em,</p><p>            transparent 0.2em</p><p>        ),</p><p>        radial-gradient(</p><p>            circle at 25% 10%,</p><p>            dodgerblue, dodgerblue 0.2em,</p><p>            transparent 0.2em</p><p>        ),</p><p>        radial-gradient(</p><p>            circle at 12% 10%,</p><p>            gold, gold 0.2em,</p><p>            transparent 0.2em</p><p>        ),</p><p>        radial-gradient(</p><p>            circle at 50% 22%,</p><p>            black, black 1em,</p><p>            transparent 1em</p><p>        ),</p><p>        linear-gradient(</p><p>            to bottom,</p><p>            transparent 25%,</p><p>            #222 25%</p><p>        ) no-repeat center top / 94% 98%,</p><p>        black;</p><p>    top: calc((100% - 7.5em) / 2);</p><p>    left: 2.5em;</p><p>}</p><p></p><p>/* cup */</p><p>.fridge::after {</p><p>    content: '';</p><p>    position: absolute;</p><p>    width: 2em;</p><p>    height: 4em;</p><p>    background: </p><p>        radial-gradient(</p><p>                circle at 35% 40%,</p><p>                lightblue, lightblue 0.1em,</p><p>                transparent 0.4em</p><p>            ),</p><p>        radial-gradient(</p><p>            circle at 65% 60%,</p><p>            lightblue, lightblue 0.1em,</p><p>            transparent 0.3em</p><p>        ),</p><p>        radial-gradient(</p><p>            circle at 45% 80%,</p><p>            lightblue, lightblue 0.1em,</p><p>            transparent 0.2em</p><p>        ),</p><p>        linear-gradient(</p><p>            to bottom,</p><p>            lightskyblue 25%,</p><p>            transparent 25%</p><p>        ),</p><p>        dodgerblue;</p><p>    bottom: calc((100% - 7.5em) / 2);</p><p>    left: calc(2.5em + (6em - 2em) / 2);</p><p>    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);</p><p>}</p><p></p><p></p><p>&lt;/style&gt;</p><p>                                                                                                                                                                                                                                                                                                                    &lt;/body&gt;</p><p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    &lt;/html&gt;

Similar questions