Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #1105307

    Hello,

    I’m trying to make the captions for my Accordion Slider title to be vertical and center aligned so they show when they are side by side. I kinda have it working but a few of the titles are cut off and not showing. You can see the issue in the private contact link. The title all the way to the right “entertainment” does not show at al…”Automative” and “eduction” get cut off.

    #1105976

    Hey eggc,

    I think you will have to add different CSS depending on the screen size using media queries. There probably isn’t any universal CSS for all screen sizes unfortunately.

    Best regards,
    Rikard

    #1106804

    ok, Can you help with this?

    #1106928

    Hi,

    What exactly do you need help with? If you don’t know how to use media queries then you can find out how to do it here: https://www.w3schools.com/cssref/css3_pr_mediaquery.asp

    Best regards,
    Rikard

    #1107244

    I managed to get the captions to work fine on desktop by adding

    #top .aviaccordion-title {
    font-size: 30px;
    }
    
    #top .aviaccordion-title {
    -webkit-transform:rotate(-90deg); -moz-transform:rotate(-90deg); -o-transform:rotate(-90deg); transform:rotate(-90deg); 
    }

    For mobile I tried adding this but it doesn’t do anything. It seems that the captions are no longer flipped and are out of frame.

    @media only screen and (max-width: 480px) {
       #top .aviaccordion-title {
        font-size: 16px !important;
       }
    
    @media only screen and (max-width: 480px) {
    #top .aviaccordion-title {
    -webkit-transform:rotate(-90deg); -moz-transform:rotate(-90deg); -o-transform:rotate(-90deg); transform:rotate(-90deg); 
    }
      }
    • This reply was modified 5 years, 8 months ago by eggc.
    #1107366

    Hi,

    You haven’t closed the first media query:

    @media only screen and (max-width: 480px) {
       #top .aviaccordion-title {
        font-size: 16px !important;
       }

    It’s missing a curly bracket at the end which might be the reason for it not applying. Also note that 480 pixels will only apply to the smaller end of mobile devices. You could try changing it to 767 for instance.

    Best regards,
    Rikard

    #1107723

    Rikard,

    Thanks for the recommendation. Upon adding the adjusted code you recommended it changes but the text is still not visible on tablet or mobile.

    @media only screen and (max-width: 767px) {
       #top .aviaccordion-title {
        font-size: 16px !important;
       }
      }
    
    @media only screen and (max-width: 767px) {
    #top .aviaccordion-title {
    -webkit-transform:rotate(-90deg); -moz-transform:rotate(-90deg); -o-transform:rotate(-90deg); transform:rotate(-90deg); 
    }
      }
    
    #1107818

    Hi,

    This CSS is causing the headers not to show:

    @media only screen and (max-width: 687px) {
    #top .aviaccordion-preview-title-wrap {
        display: flex;
        padding-top: 355px;
    }
    }

    Best regards,
    Rikard

    #1108058

    Thanks @Rikard, removing that seems to help. Is there a way to move the entrainment text left a smidgeon? It seems to get cut off.

    #1108201

    Hi,

    You can try to target that element using this CSS:

    .aviaccordion-slide-6 .aviaccordion-title {
        left: 70%;
    }

    Best regards,
    Rikard

    #1108868

    Thanks @rikard, I tried that but it title does not seem to adjust. I tried using the important as well without any luck.

    #1108910

    Hi,

    Did you add the code to the very top of quick css so it runs first? Also, clear the cache a few times over.

    Best regards,
    Jordan Shannon

    #1109258

    Hello @jordan Yes, I did.

    #1109960

    Hi eggc,

    Best regards,
    Victoria

    #1110131

    Hi @Victoria, I cleared my cache and this is what I see on my mobile.

    #1110409

    Hi eggc,

    And is this not the look that you were trying to achieve?

    Could you please attach a mockup of what you’re trying to achieve?

    Best regards,
    Victoria

    #1110458

    The “Entrainment” text is too far to the left and is not centered like the other titles. I’m trying to make the text centered like the other titles.

    #1110673

    Hi eggc,

    Thank you for clarifying.

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width: 479px) {
      .aviaccordion-slide-6 .aviaccordion-title {
        margin-left: -20px;
      }
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1111126

    That code worked amazing. Thank you @victoria

    #1111149

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Accordion Slider Title Captions’ is closed to new replies.