Inset Lists
Description
An inset list will not appear edge-to-edge.
An inset list is automatically wrapped inside a block with rounded corners and has margins set for additional spacing.
To create an inset list, add the data-inset="true"
attribute to
the list element.
Example
<!DOCTYPE html>
<html>
<head>
<meta name="viewport"
content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head><!--from w ww. j a v a2 s . c o m-->
<body>
<div data-role="page" data-add-back-btn="true">
<div data-role="header">
<h1>Contact Us</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider">Contact Options</li>
<li><a href="#"><img src="http://placehold.it/50x50"
alt="Call" class="ui-li-icon">Call</a></li>
<li><a href="#"><img src="http://placehold.it/50x50"
alt="Email" class="ui-li-icon">Email</a></li>
<li><a href="#"><img src="http://placehold.it/50x50"
alt="SMS" class="ui-li-icon">SMS</a></li>
<li><a href="#"><img src="http://placehold.it/50x50"
alt="Directions" class="ui-li-icon">Directions</a></li>
</ul>
</div>
</div>
</body>
</html>