Set dialog width
Description
The following code shows how to set dialog width.
Example
<!-- w w w . j ava 2 s . co m-->
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.5.2.js'></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css">
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
</head>
<body>
<div data-role="page" id="bar">
<a href="#foo" data-role="button" data-inline="true" data-rel="dialog"
data-transition="pop">Open dialog</a>
</div>
<div data-role="page" id="foo" style="width: 300px;">
Hello Foo
<a href="#" data-role="button" data-rel="back">
Close dialog
</a>
</div>
</body>
</html>