CSS3 17 - CSS3 media query based on screen size and device- orientation for desktop, tablet, phones.

Ankpro Training on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerWeb Design7 min

About this video

Explains how CSS media queries change styles based on screen width and device orientation, so a page can adapt to desktop, tablet and smartphone screens. Shows the media query syntax and walks through examples that change colours, font size and visibility at set breakpoints.

What you’ll learn

  • Write a CSS media query that targets a min-width and max-width range
  • Change background colour, text colour and font size at different screen widths
  • Hide page content on small screens using display none inside a media query