Created
March 12, 2020 11:51
-
-
Save navinthenapster/9858caee7db803e747bded98bc5669c5 to your computer and use it in GitHub Desktop.
Responsive Web Design Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Navin - My Portifolo | Developer </title> | |
</head> | |
<style> | |
#web, #tablet, #mobile { display: none;} | |
/* On Web View */ | |
@media screen and (min-width: 1280px) { | |
#web {display : block} | |
#tablet, #mobile { display: none; } | |
} | |
/* On Tablet View */ | |
@media screen and (min-width: 768px ) and (max-width: 1279px) { | |
#tablet {display : block} | |
#web, #mobile { display: none; } | |
} | |
/* On Mobile View */ | |
@media screen and (max-width: 768px) { | |
#mobile {display : block} | |
#tablet, #web { display: none; } | |
} | |
</style> | |
<body> | |
<div id="web"> | |
Web View | |
</div> | |
<div id="tablet"> | |
Tablet View | |
</div > | |
<div id="mobile"> | |
Mobile View | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment