Hi guys, sorry for the really nooby question but am trying to make a site specifically for iPad and i’m having trouble.
The page renders successfully in either landscape or portrait orientations, but then when I rotate from landscape to portrait, the page moves off the left hand side of the screen. (if anyone has the iOS SDK simulator or an ipad could you confirm this)
Code I’m using:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Attempted Grid</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0;">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="stylesheet" href="fonts/TypoSlabserifLightRegular/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<article>
<header>
<h1>Page Header</h1>
</header>
<section>
<div class="leftBig">This content goes on the left and is big</div>
<div class="rightSmall">This content goes on the right and is small</div>
<div class="rightSmall">This content goes on the right and is small</div>
</section>
</article>
</body>
</html>
html,body,div,span,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
-webkit-text-size-adjust: none;
font-family: sans-serif
}
article {
width: 100%;
}
header {
background-color:#3ff;
}
header h1 {
padding: 5px 2%;
font-family: "TypoSlabserifLightRegular", Times;
font-size: 36px;
text-align: right;
}
section {
width: 100%;
padding: 5px 2%;
}
.leftBig {
width: 79%;
margin-right:2%;
margin-bottom: 5px;
height: 350px;
background-color:#f33;
float: left;
}
.rightSmall {
width: 15%;
height: 170px;
margin-bottom:10px;
background-color:#3f3;
float: left;
}