Custom style a page

Description

The following code shows how to custom style a page.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type="text/javascript"
  src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css">
<style type='text/css'>
.content_white {<!--from   ww w.j a va 2  s .  co  m-->
  position: relative;
  margin-bottom: 5%;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

.custom-list {
  position: relative !important;
  margin: 0 auto !important;
  padding-bottom: 1%;
}

.custom-list li {
  border: none;
}
</style>
</head>
<body>
  <div data-role="page" id="profile">
    <div data-role="content">
      <div class="content_white">
        <p>some content here</p>
        <ul data-role="listview" data-theme="c" class="custom-list">
          <li>test</li>
          <li>one</li>
        </ul>
      </div>
    </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