hi there! does anyone know of a css-only method (css3 is fine, but preferably without border-image just in case) to style an active tab like the following dialog's toolbar (ignoring the icons): coda preferences on snow leopard
i'm using jquery-ui to generate tabs, which means the markup is similar to:
<div class="tabbed">
<ul>
<li><a href="#tab1">Tab 1</a></li>
<li><a href="#tab2">Tab 2</a></li>
<li><a href="#tab3">Tab 3</a></li>
</ul>
<div id="tab1">...</div>
...
</div>
until i have a better method, i've been styling as follows (all the ui-tabs-* classes are auto-generated by the jQ-UI tabs plugin):
.ui-tabs-nav {
background:-webkit-gradient(linear, left top, left bottom, from(#d0d0d0), to(#a7a7a7)) repeat-x; padding:1px 4px;
}
.ui-tabs-nav li.ui-tabs-selected {
border-width:0 1px; border-color:transparent rgba(0,0,0, 0.30) !important; padding:1px 0;
background:-webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0, 0)), color-stop(0.5, rgba(0,0,0, 0.1) ), to(rgba(0,0,0, 0))) repeat-x !important;
}
.ui-tabs-nav li.ui-tabs-selected > a {
border-width:0 1px; border-color:transparent rgba(0,0,0, 0.15);
}
so how can i get gradient borders without using border-image? if i DO need border-image, can it use multiple css gradients as its content?