Welcome Guest! (App Version 3.1)

websitnero logo name

By Media Query


  • Media Query helps in overriding CSS based on different screen-sizes and helps in optimizing user-friendy behavior for a website (based on screen-size of his device).

How to write media query?

Media Query is the older version of making responsive websies. It is basically writing a short snippet code to override the main set of CSS code based on the different devices on which the Website is being viewed.


@media only screen and (max-width:968px){
@media only screen and (max-width:768px){
@media only screen and (max-width:480px){

  <div>This is a div.</div>
WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.