-
AuthorPosts
-
March 29, 2024 at 8:17 pm #1438719
Hi,
I’m using the full-screen (desktop) and the full-with slider (mobile). How can I adjust the position and size of the button?Best regards
March 30, 2024 at 10:33 pm #1438793Hey northorie,
Please link to your page so we can see the buttons in the sliders, and then explain how you want them moved, perhaps a screenshot would help.Best regards,
MikeMarch 31, 2024 at 8:15 pm #1438851Sure. Link is on private content.
You can see the button in the left corner. I want it bigger and right below the text in the middle.
On mobile it is a bit too big and I need the button more to the right. It’s not in the centerMarch 31, 2024 at 10:34 pm #1438859Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (min-width: 768px) { #top .caption_bottom .slideshow_caption .slideshow_inner_caption { position: relative; text-align: center; } #top .slideshow_inner_caption .avia-slideshow-button.avia-button { width: 300px; height: 100px; font-size: 24px; } .html_header_transparency #top #main .caption_bottom .slideshow_caption { padding-top: 0; } } @media only screen and (max-width: 767px) { #top .caption_bottom .slideshow_caption .slideshow_inner_caption { position: relative; text-align: center; } #top .slideshow_inner_caption .avia-slideshow-button.avia-button { padding: 10px 6px; font-size: 10px; } }
After applying the css, please clear your browser cache and check.
Best regards,
MikeApril 1, 2024 at 4:20 pm #1438908It worked quite well on mobile. Can I get the button a bit higher though?
No change on desktop view.
April 1, 2024 at 5:45 pm #1438919Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 450px) { .slideshow_inner_caption { top: -30px; } }
After applying the css, please clear your browser cache and check.
Best regards,
MikeApril 1, 2024 at 8:02 pm #1438927Thank you!
It’s perfect on mobile now!
Can we get it good on desktop view as well?
On Desktop it is fullscreen sliderApril 1, 2024 at 11:54 pm #1438934Hi,
When I check your page on desktop the css I posted above is not applied, and this is what makes the button larger and center, so I don’t know if you have an error in your css, or if you didn’t add it because you didn’t understand, but this is the desktop part of the css that you should ensure to use:@media only screen and (min-width: 768px) { #top .caption_bottom .slideshow_caption .slideshow_inner_caption { position: relative; text-align: center; } #top .slideshow_inner_caption .avia-slideshow-button.avia-button { width: 300px; height: 100px; font-size: 24px; } .html_header_transparency #top #main .caption_bottom .slideshow_caption { padding-top: 0; } }
this is the result:
I now assume that you now wanted the button to move up a little, so you would then add this css:@media only screen and (min-width: 768px) { .slideshow_inner_caption { top: -100px; } }
for this result:
feel free to adjust to suit.Best regards,
MikeApril 23, 2024 at 3:08 pm #1440604Thanks a lot!
How can I adjust the background color, the hover effect and the border radius of this button?Best regards
April 23, 2024 at 6:09 pm #1440620Hi,
Try this example CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field to make the background color red, font white, and remove the border radius:#top #wrap_all .slideshow_inner_caption .avia-slideshow-button.avia-button { background-color: red; color: white; border-radius: 0; }
adjust to suit.
To make the button background color blue on hover add this css:#top #wrap_all .slideshow_inner_caption .avia-slideshow-button.avia-button:hover { background-color: blue; color: white; border-radius: 0; }
you can also change the font color and border radius on hover.
Best regards,
MikeApril 23, 2024 at 8:10 pm #1440628Thank you! That’s great :)
Is there a way tu structure my custom css field with headlines? I’m getting kinda lost *g
April 24, 2024 at 7:13 am #1440647Hi,
You can open css comments using forward slash (/) and asterisk (*).
Example:
/* Add your Mobile Styles here */
Please check the link below for more examples: https://www.w3schools.com/css/css_comments.asp
Best regards,
IsmaelApril 25, 2024 at 1:08 pm #1440820Thank you! Topic can be closed
-
AuthorPosts
- The topic ‘Button position on sliders’ is closed to new replies.