Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #409970

    This topic was closed, and i have an additional question.

    https://kriesi.at/support/topic/change-tab-style-font-color-body-color-border-color/

    How can i change the font color when havoering the active tab?

    Regards Simon

    #409997

    …also the active tab’s font is bold. I do not want this. How to manage this?

    i use this code now

    .js_active .tab { font-size: 15px; }
    .js_active .active_tab { font-size: 15px; }

    this is what happens
    d

    #410298

    Hey!

    It looks like you almost fixed it, correct?

    Please try this to fix the colour issue when hovering on an active tab:

    .tab.active_tab:hover{
    color:#09aace !important;
    }

    Regards,
    Rikard

    #410392
    This reply has been marked as private.
    #411224

    Hey!

    your font is not showing bold for me:

    but you could change it with this:

    div .main_color .tabcontainer .active_tab_content, div .main_color .tabcontainer .active_tab {
    font-style: normal;
    }
    

    instead of “normal” use “bold”, to see the difference.

    For your tab titles use this:

    @media only screen and (min-width: 767px) { 
    .tab_titles {
    width: 124.8px;
    }}
    

    Cheers!
    Andy

    • This reply was modified 9 years, 8 months ago by Andy.
    #411486
    This reply has been marked as private.
    #411820

    Hey Simon!

    Please try the following CSS in your Quick CSS:

    .js_active .active_tab {
      font-weight: normal !important;
    }

    Best regards,
    Rikard

    #411988

    Thanks Rikard, the code worked!

    But the problem with the other tab element is still there.

    The boxes of the tab headings do not reach over the complete width.

    #411989
    This reply has been marked as private.
    #412755

    Hi!

    The tabs looks the same. Can you please provide a screenshot of the issue?

    EDITED: I can see the issue now. Please replace the code with this:

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

    Cheers!
    Ismael

    #412828
    This reply has been marked as private.
    #413355

    Hi Simon!

    I think it will be difficult to make the tabs span 100% of the width all the time if you are going to have different amounts of tabs. Also, if you add more than 5 tabs the 6th one will display on a new line which probably won’t look very good.

    Regards,
    Rikard

    #413481

    So i could add a custom css class to each tab element. Would it then be possible? ( The second tab element has the class name “tabref” now.)

    Regards, Simon

    #414141

    Hi Simon!

    Yes, if you have a unique class or id for each tab element it’s possible.

    Regards,
    Rikard

    #414252

    …could you please tell me how the code has to look like.

    the custom css name is “tabref”

    I tried this but it did not work

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

    Hi!

    Just using your unique ID should be enough, since it’s unique:

     @media only screen and (min-width: 767px) {
    #tabref {
      padding: 12px 0 14px 0 !important;
      width: 25.1%;
      font-size: 14px;
      text-align: center;
      min-height: 50px;
    }}

    If you want to be sure your CSS is targeting correctly, please try some very simple query like the following:

    #tabref {
    border:1px solid red !important;
    }

    Regards,
    Rikard

    #415153
    This reply has been marked as private.
    #415631

    Hi!

    I see that you have added a class instead of ID, this should do the trick:

    .tabref {
    border:1px solid red !important;
    }

    I just replaced #tabref with .tabref

    Regards,
    Rikard

    • This reply was modified 9 years, 8 months ago by Rikard.
    #415694

    Well, if i use this code to adjust the headline boxes of the tab element, it changes the complete width of the whole box.

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

    Isn’ the .top_tab missing somewhere? I tried to set it before and after the .tabref but withour success.

    Regards, Simon

    #416198

    Hey!

    Looks like the class .tabref is applied to a surrounding div only, if you want to target items on a deeper lever in the DOM you would have to do something like this to target the tabs:

    .tabref .tab{
    /* your code here */
    }

    I think in your case you could benefit from hiring a freelance developer to help you out with this, or to learn CSS programming. The scope of this forum is limited to small Avia theme customisations and general problems with the same themes.

    Cheers!
    Rikard

    #416282

    THanks Rikard,

    i tired this code:

    .tabref  .tab {
      padding: 12px 0 14px 0 !important;
      width: 25.1%;
      font-size: 14px;
      text-align: center;
      min-height: 50px;
    }

    and also this

    .tabref  .top_tab .tab {
      padding: 12px 0 14px 0 !important;
      width: 25.1%;
      font-size: 14px;
      text-align: center;
      min-height: 50px;
    }

    both of them did not work. Nothing changes. I do not understand why this isn’t working…

    #417570

    Hi!

    There’s a double space between tabref and tab. It should be:

    .tabref .tab {
      padding: 12px 0 14px 0 !important;
      width: 25.1%;
      font-size: 14px;
      text-align: center;
      min-height: 50px;
    }

    Best regards,
    Ismael

Viewing 22 posts - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.