HOW TO MAKE PHP WEBSITE RESPONSIVE
Past this coad into Notepad
save it as index.php
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Responsive Design with CSS</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="style.css" media="screen"/>
<script src="modernizr-2.6.1-respond-1.1.0.min.js"></script>
</head>
<body>
<!---Your Content gose here-->
</body>
Now copy and paste this style coad in to notepad
and save as style.css
keep both file in same folder
{
// your defaut style gose here----------
}
@media only screen and (min-width: 480px)
{
// style for 480px screen gose here-------------
}
@media only screen and (min-width: 768px)
{
// style for 768px screen gose here-------------
}
@media only screen and (min-width: 480px)
{
// style for 480px screen gose here-------------
}
@media only screen and (min-width: 768px)
{
// style for 768px screen gose here-------------
}
Now you can start working on it
Comments
Post a Comment