Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I am using the UI Bootstrap tabs, and I want to change the CSS for some of the components, but am not sure of how exactly to access the different elements.

The elements I would like to change are the text for the active tab, the text for the unactive tab, and the borders for both.

What is the correct syntax need to access these tabs in CSS?

Here is the uib-tab HTML I am using:

<uib-tabset>

    <uib-tab heading="Episodes"></uib-tab>

  <uib-tab heading="Categories"></uib-tab>

</uib-tabset>

I'm pretty new to CSS - apologies in advance...

share|improve this question
up vote 2 down vote accepted

You can simply edit bootstrap's css for .nav-tabs

.nav-tabs > li > a {
    border: 1px solid #000;
}

For active tab

.nav-tabs > li.active > a {
    /*CSS HERE*/
}

Optionally you can style the uib-tab class added by Angular:

.uib-tab a {
    border: 1px solid #000;
  }

For active uib-tab

.uib-tab.active a {
    /*CSS HERE*/
}
share|improve this answer
    
Cheers Yug - just what I was looking for! Tom – Tom O'Brien yesterday
    
No worries. Happy to help :) – Yug Kapoor yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.