CMS Development

reddot
Participante

vast tabber - need help styling tabs

resolver

https://www.sonicu.com/room-conditions-mockup

Hi - I'd like to style the tabs mid-way down on this page so the active tab is a different color than rest of them. Can anyone suggest a way to accomplish this?

 

Also it would be nice to be able to make the tabs larger L-R so they are not so close together.

 

Thanks,

 

Chris

 

0 Me gusta
1 Soluciones aceptada
Kevin-C
Solución
Experto reconocido | Partner
Experto reconocido | Partner

vast tabber - need help styling tabs

resolver

Hey @reddot 

 

The tabber uses a class called active to label the current tab, so you sould be able to modify the styling with that class.

 

.tabber-wrap .tabber-tabs li.active a {
  background-color: red; // change color here
}

To make the tabs wider by setting the size of the LI

@media screen and (min-width:768px) {
.tabber-wrap .tabber-tabs li {
  width: calc(100% / 5);
  text-align: center
  }
}

or by changing the padding of the a tag inside the LIs

@media screen and (min-width:768px) {
  .tabber-wrap .tabber-tabs li a {
    padding-left: 2em;
    padding-right 2em;
  } 
}
Kevin Cornett - Sr. Solutions Architect @ BridgeRev

Ver la solución en mensaje original publicado

2 Respuestas 2
Kevin-C
Solución
Experto reconocido | Partner
Experto reconocido | Partner

vast tabber - need help styling tabs

resolver

Hey @reddot 

 

The tabber uses a class called active to label the current tab, so you sould be able to modify the styling with that class.

 

.tabber-wrap .tabber-tabs li.active a {
  background-color: red; // change color here
}

To make the tabs wider by setting the size of the LI

@media screen and (min-width:768px) {
.tabber-wrap .tabber-tabs li {
  width: calc(100% / 5);
  text-align: center
  }
}

or by changing the padding of the a tag inside the LIs

@media screen and (min-width:768px) {
  .tabber-wrap .tabber-tabs li a {
    padding-left: 2em;
    padding-right 2em;
  } 
}
Kevin Cornett - Sr. Solutions Architect @ BridgeRev
reddot
Participante

vast tabber - need help styling tabs

resolver

Thanks Kevin-C! This got me on the right track.

 

Appreciate!

 

Reddot