I'm currently facing a challenge with incorporating a JQueryUI Progress Bar into a web page that already utilizes the styling of a JQueryUI Tab. The visual appearance of the tab panel and tabs has been customized using CSS, including the use of the .ui-widget-header value which is also applied to the Progress Bar.
My issue lies in needing the Progress Bar to have a different style defined within the .ui-widget-header CSS class separate from what is set for the Tabs. Specifically, I believe the border property within the .ui-widget-header style needs to be adjusted. I suspect that this can be achieved through CSS by targeting specific IDs, but I am unsure of the correct approach.
Attached is an HTML example file illustrating the problem. It showcases the desired look for the tabs while seeking a distinct style for the Progress Bar (with a full border and 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>