Getting started with JQuery UI
Hi,
I have the following html code that I want to enhance with the JQuery UI. I want to make the anchor links into
buttons. The style tag was produced by Coffecup Software.
Am I adding the JQuery UI stylesheet right?
Do I have to include a class with the anchors?
The example I looked at included the stylesheet and js files and anchors were displayed as buttons with no further coding. So would the Coffecup styling be interfering?
I am not sure what to do with the UI functionality to reproduce this since all they seemed to do was include the stylesheet and js files and everything just worked.
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>Your Title</title>
- <style type="text/css" media="screen">
- html, body { margin: 0; padding: 0; }
- body { color: #333; font: 12px Helvetica, Arial, sans-serif; line-height: 18px; }
- h2 { color: #333; }
- a { color: #337810; }
- p { margin: 0 0 18px; }
- #wrapper { float: left; width: 100%; }
-
- /* Header */
- #header { background: #fff; border-bottom: 2px solid #ddd; }
- #header h1 { color: #004b6f; margin: 0 0 3px; padding: 24px 18px 0; }
- #header p { color: #666; font-size: 11px; font-weight: bold; padding: 0 18px; }
-
- /* Content Style */
- #navigation { border-bottom: 1px solid #ccc; padding-left: 18px; }
- #navigation ul { padding: 0 18px 9px; }
- #content { border-bottom: 1px solid #ccc; margin: 0 18px 9px; }
- #extra { margin: 0 0 0 18px; }
- #extra small { font-size: 11px; line-height: 18px; }
- #content p, #extra p { padding-right: 18px; }
-
- /* Content Positioning and Size */
- #navigation { float: left; width: 200px; margin-left: -100%; }
- #content { margin-left: 243px; }
- #extra { clear: left; } /* Footer */
- #footer { background: #B26B6B; border-bottom: 2px solid #999; clear: both; width: 100%; }
- #footer a { color: #eee; }
- #footer p { color: #ccc; margin: 0; padding: 0 18px 10px; }
- #footer ul { border-bottom: 1px solid #555; list-style: none; margin: 0 18px 6px; padding: 10px 0 6px; }
- #footer li { display: inline; font-size: 11px; font-weight: bold; padding-right: 5px; }
- </style>
- <!--[if IE]>
- <style type="text/css">
- #navigation, #content, #extra { margin-top: 20px; }
- </style>
- <![endif]-->
- <link href="css/smoothness/jquery-ui-1.10.4.custom.css" rel="stylesheet" />
- <script type="text/javascript" src="lib/jquery-1.10.2.js"></script>
- <script type="text/javascript" src="lib/jquery-ui-1.10.4.custom.js"></script>
- </head><body>
- <div id="container">
- <div id="header">
- <div style="text-align: center;"><img src="lane.png" width="1024" height="200" alt="" title="" /></div>
-
- </div>
- <div id="wrapper">
- <div id="content">
- <h2>Under Construction</h2>
- <img src="Under-Construction-1.gif" width="300" height="300" alt="" title="" />
- <p>Phone</p>
- <p>Fax</p>
- <p>Mobile</p>
- </div>
- </div>
- <div id="navigation">
- <ul>
- <li><a href="index.html" class="ui-button:a">Home</a></li>
- <li><a href="Services.html">Services</a></li>
- <li><a href="About.html">About</a></li>
- <li><a href="Contact.html">Contact</a></li>
-
- </ul>
- </div>
- <div id="extra">
-
-
- </div>
- <div id="footer">
- <ul>
- <li><a href="index.html">Home</a></li>
- <li><a href="Services.html">Services</a></li>
- <li><a href="About.html">About</a></li>
- <li><a href="Contact.html">Contact</a></li>
- </ul>
- </div>
- </div>
- </body>
- </html>