Home Forums WoodMart support forum Line height for span in HTML widget being overwritten

Line height for span in HTML widget being overwritten

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #647153

    kontakt-9949
    Participant

    Hey, I have created a HTML widget and want to have 1.3 line height here for the span element. –wd-text-line-height is overwriting my css, even when I am using important. How can I fix this? Thank you. I have attached a txt file with the custom HTML code in the moderators section. There is also a login there. Hope to hear from you soon.

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

    Luke Nielsen
    Keymaster

    Hello,

    Send me screenshot of where that span situated on your website and send me the URL link to the website so I can check it.

    Kind Regards

    #647834

    kontakt-9949
    Participant

    Hey, thanks for getting back to me so quickly. Left the URL in the private content section. Screenshot is attached.

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

    Luke Nielsen
    Keymaster

    Hello,

    Define just the “line-height” property here – https://prnt.sc/1NdASZ6KsnBV and it should work – https://prnt.sc/qdrYqJdV91Gi

    Kind Regards

    #647895

    kontakt-9949
    Participant

    Does not work. Please help me find a solution.

    #647950

    Luke Nielsen
    Keymaster

    Hello,

    Remove your custom code – https://prnt.sc/vg7Zm44uI2Rf

    And use the below code instead:

    .deliverydate-flex {
        font-size: 14px;
        line-height: 1;
    }

    Result: https://prnt.sc/y9GU4p0EVOpy

    Kind Regards

    #647968

    kontakt-9949
    Participant

    Amazing, thank you so much, Luke! Have a wonderful day and a good weekend.

    #647974

    Luke Nielsen
    Keymaster

    Hello,

    You are welcome! If you do not mind, can you please leave a 5 stars rating for our theme by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in the future. It would encourage our work a lot.

    Have a good day!

    Kind Regards

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

The topic ‘Line height for span in HTML widget being overwritten’ is closed to new replies.