Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #407233

    Hi,

    i need to change the color (and size) of the font in tabs – active and not active. The same for the body – here also when hovered for not active tabs.

    Also the tabs should reach to the end of the tab box no matter how long the text is.

    Thanks Simon

    #407528

    Hi simonac!

    Use this for border color:

    .js_active .tab {
    border-color: blue;
    }
    .js_active .active_tab_content {
    border-color: blue;
    }
    

    Use this for background color of inactive tabs and white font color:

    .main_color .sidebar_tab, .main_color .tabcontainer .tab {
    background: blue;
    color: white;
    }
    

    Use this for blue font color of active tab:

    .main_color .template-archives .tabcontainer a, #top .main_color .tabcontainer .tab:hover, #top .main_color .tabcontainer .tab.active_tab {
    color: blue;
    }
    

    Adjust color as needed.

    Regards,
    Andy

    #407674

    Hi Andy,

    thanks for your answer!

    Two things:
    1. When hovering a non active tab the background color should change and not the font color.
    2. Is it possible that the boxes of the headings reach over the complete weidth of the tab container?

    Thanks a lot!!

    Simon

    #408202

    Hi!

    1- Please add following code to Quick CSS

    .tabcontainer .tab:hover {
      background-color: orange;
      color: white!important;
    }

    2- Can you please post a screenshot and show the changes you would like to make? Not sure if i understood you clearly

    Regards,
    Yigit

    #408249

    Hi Yigit,

    the code worked thanks!

    nr. 2 see screenshot:

    1

    Regards

    #408255

    Hey!

    Please add following code to Quick CSS as well

    div .main_color .tabcontainer .active_tab {
      color: #212121!important;
    }
    @media only screen and (min-width: 1440px) {
    .js_active .top_tab .tab {
      padding: 12px 27px 14px 27px;
    }}
    

    Cheers!
    Yigit

    #408405

    The code changes the active tab’s font but nothing else.
    If i try without the first part also nothing changes.If i play with min-width it gets to long and flows over in a second line.

    #408469

    Hi!

    Try with this:

    @media only screen and (min-width: 767px) {
        .top_tab .tab {
            padding: 12px 0 14px 0 !important;
            width: 20.07%;
            font-size: 14px;
            text-align: center;
        }
    }

    Cheers!
    Josue

    #408751

    You made it Josue!!!

    Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘change tab style – font color – body color – border color’ is closed to new replies.