CSS for line style works only directly in browser

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

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    RESOLVED Posts
  • CBDFactum
    Participant

    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?

    Attachments:
    You must be logged in to view attached files.

    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

    CBDFactum
    Participant

    Thank you very much, it works! I appreciate your fast support.

     

    You can close this case.

    You are most welcome here 🙂

    CBDFactum
    Participant

    Hi, is there any way to restrict the length of the dotted underline to the length of the text which is underlined? Thx

    CBDFactum
    Participant

    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.

Viewing 7 posts - 1 through 7 (of 7 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form