I have created a Tabbed area using a list "" of radio buttons. These now stack horizontally.
I now need to create a list within the content area of the tabbed area. But when I create list, the lists are also horizontal.
Is there a way of targeting a UL within a UL and 'resetting it'? Or maybe I can use a but change the numbers to bullets?
Here is a fiddle link: http://jsfiddle.net/SteveDavies/4Njb6/ Here is some css for the tabbed area
.tabs input[type=radio] {
position: absolute;
top: -9999px;
left: -9999px;
}
.tabs {
width: 670px;
float: none;
list-style: none;
position: relative;
padding: 0;
margin: 75px auto;
}
.tabs li{
float: left;
}
.tabs label {
display: block;
padding: 10px 20px;
border-radius: 0px 0px 0 0;
color: #ffffff;
font-size: 16px;
font-weight: BOLD;
font-family: helvetica;
background: #ccc;
cursor: pointer;
position: relative;
top: 3px;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
clear:both;
}
.tabs label:hover {
background: #adafaf;
top: 0px;
}
and here is the code in the HTML for one of the tabs:
<div style="clear:both;">
<ul class="tabs">
<!-- FIND ME TAB -->
<li>
<input type="radio" checked name="tabs" id="tabfindme">
<label for="tabfindme">FIND ME</label>
<div id="tab-content1" class="findmecontent animated fadeIn"
>
Hope you can help!
Many thanks
Steve