[Resolved] Creating a border around images

Home Forums Support Creating a border around images

  • This topic has 2 replies, 2 voices, and was last updated 1 month ago by Leo.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1419386
    Eric

    Hey there GP Team,

    I’m trying to create a simple 5px solid white border around a certain image on the homepage.

    I’ve attempted to achieve this by assigning an Additional CSS class (crg-image-border) to the image I’m looking to target and then using Tom’s Simple CSS plugin to enter the CSS.

     wp-block-image .crg-image-border {
        border: 5px solid #ffffff;
    }

    I’m guessing the issue is I’m not using the correct selector, but I’ve tried several different selector combinations and digging through the forum for hints but haven’t been able to figure it out yet.

    Can you have a look and let me know where I’m missing the mark. Thanks!

    #1419407
    Eric

    Hi again,

    False alarm. I sorted it out using the following CSS.

    .crg-image-border {
        border: 5px solid #ffffff;
    }

    I swear that was the first thing I tried and it didn’t work. Maybe it was because the page I was working on wasn’t published and needed to be refreshed or some other user error.

    Thanks anyways!

    #1419418
    Leo
    Staff
    Customer Support
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.