|
|
#1 |
|
Splitview for iPad Safari?
Is there a way to create a splitview using html5 and css3? something similar to the settings menu on ipads. So you have a scrollable list down the left hand side and a static details page on the right. its specifically for an ipad webapp. im looking at jquery mobile currently but cant see a way to do that. a shame as everything else in jqm looks awesome and is easy to code.
__________________
MacBook Pro 2.33/250 Hybrid/3GB Lion iPhone 4S 32GB | iPhone 4 16GB | New iPad 32GB | iPad 2 16GB
|
|
|
|
0
|
|
|
#2 | |
|
Quote:
![]() Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>My Fake iPad Settings Menu</title>
<style type="text/css">
body{
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
}
#framecontent{
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 200px; /*Width of frame div*/
height: 100%;
overflow: scroll; /*Disable or enable scrollbars. Set to "scroll" to enable*/
background: navy;
color: white;
}
#maincontent{
position: fixed;
top: 0;
left: 200px; /*Set left value to WidthOfFrameDiv*/
right: 0;
bottom: 0;
overflow: auto;
background: #fff;
}
.innertube{
margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/
}
* html body{ /*IE6 hack*/
padding: 0 0 0 200px; /*Set value to (0 0 0 WidthOfFrameDiv)*/
}
* html #maincontent{ /*IE6 hack*/
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="framecontent">
<div class="innertube">
<h1>CSS Left Frame Layout</h1>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
<h3>Sample text here</h3>
</div>
</div>
<div id="maincontent">
<div class="innertube">
<h1>Setting for sample text (fake)</h1>
</div>
</div>
</body>
</html>
__________________
Jim Goldbloom Sr. Web Developer, owner GoldTechPro, LLC http://www.GoldTechPro.com
|
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 10:50 AM.




MacBook Pro 2.33/250 Hybrid/3GB Lion




Linear Mode
