Shopify themes, liquid, logos, and UX
As the title says I need help removing the black border inside the white border.
Code:
<style>.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;}}</style><!-- Video section will be hidden on mobile devices --><div class="video-cover"><!-- Call to action button --><a class="cta-btn button" href="Add your site URL here">Products</a><video autoplay loop playsinline muted></video></div><style>.video-cover .cta-btn {background-color: transparent;border: 2px solid white;color: white;padding: 10px 20px;}.video-cover .cta-btn:hover {background-color: black;border-color: black;}.video-cover .cta-btn-text {font-size: 18px;font-family: Arial, sans-serif;color: white;}.video-cover .cta-btn-text:hover {color: white;}```And wrap your button text with a span element:```<a class="cta-btn button" href="Add your site URL here"><span class="cta-btn-text">Products</span></a>```This will make the button transparent with white outlines and text, and change the background to black on hover. The text font and color can be adjusted in the `.cta-btn-text` CSS rules.To add text over the button, you can add another element, like a `span`, inside the button element:```<a class="cta-btn button" href="Add your site URL here"><span class="cta-btn-text">Products</span><span class="btn-extra-text">Extra text</span></a>```And style it accordingly:```.video-cover .btn-extra-text {font-size: 14px;font-family: Arial, sans-serif;color: white;position: absolute;bottom: 10px;}</style>
Solved! Go to the solution
This is an accepted solution.
That was im trying to take out on your other post also taking out the double line when hover.
.cta-btn.button:after, .cta-btn.button:before {
box-shadow: none !important;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
That was im trying to take out on your other post also taking out the double line when hover.
.cta-btn.button:after, .cta-btn.button:before {
box-shadow: none !important;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
I couldn't be more thankful. I appericate it so much.
Welcome, please dont forget to likes. 😊 My notifications are delayed. I see your new post first before noticing your reply in the other post.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025