Shabarinath Volam
Shabarinath Volam

Reputation: 745

Need to customize jquery tabs css

Hi here i have used jquery tabs and then my output is like

enter image description here

and i need to get like (Need to remove line below selected tab)

enter image description here

My code is like

css:

<script type="text/css">
    body {
        background-color: #eef;     
    }
    #tabs {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 10px;
    }
</script>

Layout:

<div id="tabs" style="min-height:200px;">
            <ul>
                <li><a href="#mission">Mission</a></li>
                <li><a href="#vision">Vision</a></li>
                <li><a href="#noticeBoard">Notice Board</a></li>
            </ul>
            <div id="mission">
                <p>${homePage.mission}</p>
            </div>
            <div id="vision">
                <p>${homePage.vision}</p>
            </div>
            <div id="noticeBoard">
            </div>
        </div>

js:

$("#tabs").tabs();

Can anybody help me doing this

Upvotes: 0

Views: 89

Answers (1)

DaniP
DaniP

Reputation: 38252

Maybe you have changed the default CSS in some point because for default that's the style of the tabs. Check this Demo Fiddle

The style that hides the bottom-border for the active tab is this:

.ui-tabs .ui-tabs-nav li.ui-tabs-active {
     margin-bottom: -1px; padding-bottom: 1px;
}

Upvotes: 1

Related Questions