[Resolved] How to add text shadow

Home Forums Support [Resolved] How to add text shadow

Home Forums Support How to add text shadow

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1586176
    Ben

    Hey guys,

    How would I add a text shadow?

    Thanks

    #1586295
    Ying
    Staff
    Customer Support

    Hi Ben,

    We can use some CSS to style that content.
    First add a custom class to the text, eg. text-shadow then add this css:

    .text-shadow {
        text-shadow: 1px 2px 5px rgba(0,0,0,0.8);
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    If you need further assistance, please link us your site using the private info field. 🙂

    #1588748
    Ben

    That’s worked on desktop but it doesn’t work on mobile?

    Any ideas?

    Thanks

    #1588758
    Elvin
    Staff
    Customer Support

    Hi,

    That’s worked on desktop but it doesn’t work on mobile?

    That’s due to the CSS being placed within a @media (min-width:769px) { ... } rule.

    Place the code provided outside of the media rule so it applies to all viewports.

    A wise man once said:
    "Have you cleared your cache?"

    #1588869
    Ben

    Ahh OK, thanks

    #1589706
    Ying
    Staff
    Customer Support

    No problem 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.