I have website with two css flies the first one to view the site in a desktop screen the second one to view it in Ipad screen , Knowing that they have the same HTML code ,,
my Q : is there any code to detect the Ipad and force to take the css file that is suitable for it??
thxx
edited section:
dears thxxx for the answer but css effect no longer appear, I think I code something wrong, what I have done is :
in the main page at the header I add thess lines:
<meta name="viewport" content="width=980" /><br/>
<link href="css/site.css" rel="stylesheet" type="text/css">
inside the site.css I code:
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
{
*
{
margin::0;
padding:0;
}
html , body
{
margin:0;
padding:0;
width:100%;
font-family:"Trebuchet MS";
font-size:12px;
}
.Wrapper{margin:0 auto;}
.InnerWrapper{width:100%;
margin:0;
padding-top:140px;
float:none;
display:block;
height:auto;}
.Header{padding-bottom:0;
height:140px;
background: none repeat scroll 0 0 #FFFFFF;
z-index: 100000;
position: fixed;
color: #000000;
float: left;
width: 100%;
box-shadow:0 -1px 7px 5px #888888;}
}
but this not work ... can you help please !!