I am trying to add a JQueryUI Progress Bar to a page that already has a JQueryUI Tab styled on it. The look of the tab pane and tabs has been already set via the CSS. One of the CSS values .ui-widget-header is also used for the Progress Bar.
How can I make the Progress Bar use a different definition of this CSS style than the one already defined to get teh Tabs to look correctly?
It is specifically the border property I think I need to modify in the .ui-widget-header style. It seems like I could do something with CSS for ID specific tags but I'm not sure how to accomplish this.
Below is an example HTML file that shows the issue. I want the tabs styled the way they are currently, but want to have the Progress Bar styled differently (full border, solid progress meter).
<!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" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"></script>
<title>Test</title>
</head>
<body>
<script type="text/javascript" language="javascript">
<!--
//Tabs
$(function(){
$('#tabs').tabs();
$("#progressbar").progressbar({ value: 0 });
setTimeout(updateProgress, 500);
});
function updateProgress() {
var progress;
progress = $("#progressbar")
.progressbar("option","value");
if (progress < 100) {
$("#progressbar")
.progressbar("option", "value", progress + 1);
setTimeout(updateProgress, 500);
}
}
// -->
</script>
<style type="text/css">
.ui-widget { font-family: Arial, sans-serif; font-size: 1.1em; }
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Arial, sans-serif; font-size: 1em; }
.ui-widget-content { border: 1px solid #ffffff; background: #ffffff}
.ui-widget-content a { color: #333333; }
.ui-widget-header { border: 1px solid #FFFFFF; border-bottom:solid 1px #056B2E; background:none; font-weight:normal;}
</style>
<div id="bodycontent">
<!-- Tabs -->
<div id="tabs">
<ul>
<li><a href="#tabs-1">test 1</a></li>
<li><a href="#tabs-2">test 2</a></li>
</ul>
<div id="tabs-1">
Test 1 Content
</div>
<div id="tabs-2">
Test 2 Content
</div>
</div>
<br/>
<br/>
<div id="progressbar"></div>
</div>
</body>
</html>