Put border around images

  • Author
    Posts
  • #156012
    metbaseball
    Member

    How can I put a border around all images?

    In my post at https://batsandstats.com/2020/05/29/cy-young-lives-on/ I noticed that the Mike Marshall image does not seem to have a border.

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

    #156013
    kenielts
    Member

    I think you can do it with

    .wp-block-image img {
    border: 1px solid #fff; 
    }
    

    You can change to the color you like by replacing #fff with another color code.

    #156022
    binarymoon
    Theme Author

    Hi

    It looks like the Mike Marshall image is a screenshot and the border is part of the image:

    Otherwise, the CSS that Ken provided will do the job! :)

    Thanks – Ben

  • The topic ‘Put border around images’ is closed to new replies.