Layout form controls in one row
Description
The following code shows how to layout form controls in one row.
Example
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css">
<script type='text/javascript'
src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
<style type='text/css'>
.row {<!--from ww w . j a v a2 s .c o m-->
min-width: 400px;
width: 400px;
}
.inline, .inline-right, .row {
position: relative;
float: right;
}
.inline-right {
margin-left: 10px;
padding-top: 5px;
}
</style>
</head>
<body>
<form id="loginForm" action="..." method="post">
<div class="row">
<div class="inline-right">
<a id="info" href="..." data-role="button" data-icon="info"
data-iconpos="notext" class="middle-button">Info</a>
</div>
<div class="inline">
<input id="rememberMe" name="rememberMe" type="checkbox" />
<label for="rememberMe">Remember me in this computer</label>
</div>
</div>
<div class="row">
<div class="inline">
<input id="submit" type="submit" value="log in" data-inline="true" />
</div>
</div>
</form>
</body>
</html>