Can I add a dark background behind white text on images

  • Author
    Posts
  • #132405

    I’ve put an image on my block that has dark and white text on it… so you can really read the heading or title on the homepage or the post. I think from some posts on this forum it automatically picks dark or light text – but with this particular image neither will work. Is there anything I can do? Any CMS I can add for this particular page?

    Thanks

    The blog I need help with is: (visible only to logged in users)

    #132504
    jleuze
    Theme Author

    Hi, getting the right contrast can be challenging, I would recommend sticking with very light or dark images and trying to avoid images with a medium contrast.

    You could try adding a dropshadow to the title text to improve the legibility:

    
    .featured-title {
        text-shadow: 1px 1px 5px #000;
    }
    
  • The topic ‘Can I add a dark background behind white text on images’ is closed to new replies.