Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1489045

    Hello everyone,

    First of all, kudos for the support and theme development.
    I probably only have a minor problem.
    On the test page, I:

    1) created a row of buttons. However, for some reason, I can’t control them properly with CSS.
    2) More importantly, although I managed to limit the maximum size of the buttons, this also applies to mobile devices. A width of 100% would definitely be useful here.
    The idea is that the buttons should also be a kind of text cloud, so that I have both buttons and text content.
    Is there a simple solution here? Attached is the code I’ve put together, but it’s not working properly.
    Many thanks.
    Matthias
    My Code:

    /* buttonrow max width of Buttons*/

    #top .avia-buttonrow-wrap a {
    max-width: 50% !important;
    font-weight: 500!important;
    }
    @media only screen and (max-width: 767px) {
    .avia-buttonrow-wrap a {
    max-width: 100% !important;
    font-weight: 500!important;
    }
    }

    /* buttonrow Font size on desktop */

    #top .textcloud .avia-button
    {text-align:left!important;
    font-weight:500!important;
    }

    #1489053

    your rule:

    #top .avia-buttonrow-wrap a {
      max-width: 50% !important;
      font-weight: 500!important;
    }

    the selector is more specific because it has one ID that counts much more than classes.
    thats the reason why the selector : .avia-buttonrow-wrap a does not win the race ;)

    so try:

    #top .textcloud .avia-button {
      text-align:left!important;
      font-weight:500!important;
    }
    
    #top .avia-buttonrow-wrap a {
      max-width: 50% !important;
      font-weight: 500!important;
    }
    @media only screen and (max-width: 767px) {
      #top .avia-buttonrow-wrap a {
        max-width: 100% !important;
      }
    }

    https://specificity.keegan.st/

    #1489054

    Thank you Guenni007, perfect work!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Button row length of the buttons’ is closed to new replies.