WordPress.org

Forums

Change Image Border Color on Pages (1 post)

  1. queridamolly
    Member
    Posted 1 year ago #

    Hi everyone!

    I have created a bunch of pages with images. The images that have borders have the default color border color black. I would like to change the border colors to gray (#a4a4a4).

    Is there a way to add CSS to my [child] style sheet that would change the border color on existing images and/or make gray the default color for images added in the future?

    I tried adding img {border: 1px solid #a4a4a4} but that just added a gray border to every image on my site (woops!). I do not want every image on a page to have a border.

    I have successfully changed the border color to gray on one page by going into the page html and manually changing the border color. That was a pain and I'd like to avoid doing that on every page.

    Example page on my site: http://www.mollyegreen.com/project-getdowntown/

    Any help appreciated, thanks in advance...

Topic Closed

This topic has been closed to new replies.

About this Topic