Hello! I have created a Liquid Custom Video for automatic play etc.
I have also created a button, but I don’t know how to customize this button.
I’d like to make it transparent with white outlines and white text, and if possible, make the whole button black (text still white) when hovering. Is this possible?
One more question, could I also add a text over the button? And how do I go about changing its font and color.
-CODE UNDER HERE-
.video-cover { position: relative; }
.video-cover .cta-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
z-index: 999; }
video {
display: block;
margin: 0 auto;
width: 100%;
height: 50%;
}
@media screen and (max-width: 767px) {
video {
display: none;
}
}
1 Like
Dumb question, what is CSS rule? Custom CSS or in the Liquid code?
Hi @SamSukhoonNordl
Would you mind to share your store URL with the custom video? Sorry, hard for me to edits without seeing the actual current design. Thanks!
Thank you so much, looks great. However within the white border, theres a black border, very thin. What causes this and could you remove it?
Absolutley. https://nattstudios.com/ 1234
Please ignore the pictures and video… they will obviously be changed when we have everything ready.
It just helped us visually.
Also, critics are appericated if theres anything you see!
Thanks! Seems like it already change the color. I just add some fix.
- From you Admin page, go to Online Store > Themes
- Select the theme you want to edit
- Under the Asset folder, open the main.css(base.css, style.css or theme.css)
- Then place the code below at the very bottom of the file.
.cta-btn.button:hover {
border: none;
}
.cta-btn.button:after, .cta-btn.button:before {
box-shadow: 5px white;
}
Hey! Sadly didn’t work. I just want to remove the black border within the white one.
It’s quiet hard to see though..