Home › Forums › Jevelin Theme › CSS for line style works only directly in browser
Home › Forums › Jevelin Theme › CSS for line style works only directly in browser
I am referring to this page https://cbdfactum.com/product/cbd-factum-patches/ and to the lines as in the attached screenshot.
When I apply this CSS directly in the browser inspector
.woocommerce .woocommerce-tabs li, table, table td, table th {
border-style: dotted !important;
}
then the style of the line changes to dotted – as you can see in the 2nd screenshot.
Adding it to my style.css does NOT work. I purge the cached, reloaded the page with CTRL+F51 – no change. Usually any change in this CSS file is immediately visible.
What am I doing wrong?
Solution for this topic
Hi @CBDFactum,
I hope you are well today and thank you for your question.
It seems the CSS specificity issue so please try using the below CSS code.
.woocommerce #page-container .woocommerce-tabs li {
border-style: dotted !important;
}
Best regards,
Shufflehound team
Thank you very much, it works! I appreciate your fast support.
You can close this case.
You are most welcome here 🙂
Hi, is there any way to restrict the length of the dotted underline to the length of the text which is underlined? Thx
OK, I could achieve it with this CSS:
/* underline each li element with length of to the underlined text */
.woocommerce #page-container .woocommerce-tabs ul > li {
text-decoration: underline #A9BF16 dotted;
}
/* hide the original underline in the product description below each li */
.woocommerce #page-container .woocommerce-tabs li {
border-style: none !important;
}Is there a way to set the padding of the dotted line?
No, we can’t add padding there.
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.