Add border to listview

Description

The following code shows how to add border to listview.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.7.1.js'></script>
<script type='text/javascript'
  src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css">
<script type='text/javascript'
  src="http://code.jquery.com/jquery-1.7.1.js"></script>
</head><!--from  ww w  .j a  v  a  2  s .c  o  m-->
<body>
  <style>
#divSearchList {
  border: rgb(130, 130, 130);
  border: rgba(130, 130, 130, .3);
  border-width: 1px;
  border-style: solid;
  width: 97%;
  height: 200px;
  overflow-x: hidden;
  overflow-y: auto;
}

#mylist {
  margin-top: 0px;
}
</style>
  <div data-role="page" id="pageone" data-theme="a" class="page-ovveride"
    data-fullscreen="true">
    <div data-role="content">
      <label for="search_term">Name:</label> 
      <input type="search" name="search_term" id="search_term" value="" /> 
      <input type="hidden" name="pageOffset" id="pageOffset"> 
      <input type="hidden" name="totalCount" id="totalCount">
      <div id='divSearchList' data-inset="true" data-role="listview">
        <ul id="mylist" data-role="listview" data-inset="true">
          <li>Testing</li>
        </ul>
      </div>
    </div>
</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Example »




Button
Button Event
Button Icon
Button Text
Checkbox
Collapsible
Date
Dialog
Event
Footer
Form
Header
Icon
Input
Layout
Listview
Listview Divider
Listview Item
Loader
mobile_settings
Navbar
Page
Page Event
Popup
Radio
Select
Slider
Switch
Textarea
Theme