Welcome to %s forums

<No. 1 Community for developers, by developers/>

Login Register

What is nested media query?

For general web development questions using HTML and CSS.
Post Reply
admin
Site Admin
Posts: 45

What is nested media query?

Post by admin » Tue Sep 03, 2019 12:49 am

Nested media query you can see as below LESS code:

Code: Select all

h2 {
    font-size: 60px;

    @media (max-width: 1199px) { font-size: 50px; }
    @media (max-width: 991px) { font-size: 40px; }
    @media (max-width: 767px) { font-size: 30px; }
    @media (max-width: 480px) { font-size: 20px; }
}

anono4
Posts: 1

Post by anono4 » Sat Sep 07, 2019 3:45 am

Can you please explain this?

Post Reply