I am attempting to style my jQuery tabs with CSS, but am having no success. Perhaps I am not understanding CSS/Jquery enough.
Here is my CSS (I am trying to center the tabs for example)
#tabs-centre .ui-tabs-nav
{
height: 2.35em;
text-align: center;
}
#tabs-centre .ui-tabs-nav li
{
display: inline-block;
float: none;
top: 0px;
margin: 0em;
}
And here is my html...
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="stylesheets/styles.css"/>
<script>
$(function()
{
$( "#tabs" ).tabs();
});
</script>
</head>
<body>
<div class="heading">
<img class="stretchedwidth" src="images/magnolia.jpg" height=300px/>
</div>
<div id="tabs" class="#tabs-centre">
<ul>
<li><a href="#tabs-1">About Me</a></li>
<li><a href="#tabs-2">Recipes</a></li>
<li><a href="#tabs-3">Resources</a></li>
<li><a href="#tabs-4">Register For Classes</a></li>
</ul>
<div id="tabs-1">
My name is Alyssa.
</div>
<div id="tabs-2">
Here are some recipies
</div>
<div id="tabs-3">
Here are some great resources
</div>
<div id="tabs-4">
Look a form! <input type="text"/>
</div>
</div>
</body>
</html>
My stylesheet is the "styles.css"
.ui-tabs-navwithin your#tabs-centrediv. That's most likely the problem.<div id="tabs" class="tabs-centre class2 class3 andsoon">and then.tabs-centre .ui-tabs-nav