-
AuthorPosts
-
February 13, 2015 at 6:21 pm #206236
Hi,
I am using a button on my home page inside of the revolution slider.
I’m not sure if it is because I am using it inside of the slider, but it is being constrained when I size my screen down, to the point of being almost non-existent on mobile.
The “x-large” round button shortcode appears to remain responsive and maintain a height of 65px regardless of screen size. Is it possible to replicate that inside of the Revolution slider?
Thank you
February 13, 2015 at 6:22 pm #206238This reply has been marked as private.February 15, 2015 at 2:58 am #206887Hi there,
Please add the following CSS under Customize -> Custom -> CSS :
@media (max-width:480px){ a.x-btn.x-btn-lightgrey.x-btn-rounded.x-btn-jumbo.x-btn-block { width: 150px !important; font-size: 12px !important; line-height: 15px !important; } }
Hope it helps.
June 7, 2015 at 7:15 am #294939Hi Support,
I adapted the above code to fit the button on my revolution slider. The objective is the same, i.e. to ensure it is of a larger size in the mobile screen.
My code is:
@media (max-width:480px){
a.x-btn.hero-btn.x-btn-real.x-btn-round.x-btn-small {
width: 150px !important;
font-size: 12px !important;
line-height: 15px !important;
}
}Unfortunately, it doesn’t work…. What am i missing here?
Will provide URL and credentials below.
Thanks!
June 7, 2015 at 7:18 am #294941This reply has been marked as private.June 7, 2015 at 8:01 am #294962You can use this code:
@media (max-width: 480px) { .rev_slider_wrapper .x-btn { font-size: 1.2rem !important; padding: 0.863em 1.1em 0.913em !important; } }
Play around with the padding to adjust the width and height of the button.
June 7, 2015 at 12:32 pm #295122Thank you so much for chimming in Ying-Fu L. We are glad to have you hear in our community.
Have a great day! 🙂
June 7, 2015 at 1:15 pm #295145Thanks! That worked perfectly!
June 7, 2015 at 1:57 pm #295158Glad to hear that! 🙂
-
AuthorPosts