brentnicholas
09-11-2008, 02:28 PM
Howdy all -
So I'm a little unsure about how you address(style) sub elements via css. This area always confuses me...
I have the following spans:
<span class="tabsOCBox">Stations List: <span id="stationListOpen">Open</span><span id="stationListClose">Close</span></span>
<span class="tabsOCBox">Station Details: <span id="stationDetailsOpen">Open</span><span id="stationDetailsClose">Close</span></span>
And the following styles:
// works great and sytles both 'tabsOCBox'
.tabsOCBox{
background-color: #ffffff;
border: 1px solid #000000;
width:100%;
}
// I'd like to style the inner spans as such, but I don't think I'm addressing it right
.tabOCBox span{
border-top:2px solid #c0c0c0;
border-left:2px solid #c0c0c0;
}
Thoughts?
Thanks for you time!
BN
So I'm a little unsure about how you address(style) sub elements via css. This area always confuses me...
I have the following spans:
<span class="tabsOCBox">Stations List: <span id="stationListOpen">Open</span><span id="stationListClose">Close</span></span>
<span class="tabsOCBox">Station Details: <span id="stationDetailsOpen">Open</span><span id="stationDetailsClose">Close</span></span>
And the following styles:
// works great and sytles both 'tabsOCBox'
.tabsOCBox{
background-color: #ffffff;
border: 1px solid #000000;
width:100%;
}
// I'd like to style the inner spans as such, but I don't think I'm addressing it right
.tabOCBox span{
border-top:2px solid #c0c0c0;
border-left:2px solid #c0c0c0;
}
Thoughts?
Thanks for you time!
BN