Horje
How to add a CSS when Screen is 500px

The CSS will work when Your Website accesses from 500px screen size.

How it will work?
  • When your website will meet above 500px display.
  • It will not show css style.
  • When your website will meet below 500px display.
  • It will show css style.

Here is an example.


Example of According to Screen CSS Work

Click on Try Now Button to see full example.
index.html
Example: HTML
<style>
@media(max-width: 600px) {
/* Here adds your other css code */
}
</style>

Output should be:





css screen

Type :
Develop
Category :
Web Tutorial
Sub Category :
CSS Screen
Uploaded by :
Admin