[Resolved] How to add borders around elements with CSS?

Home Forums Support [Resolved] How to add borders around elements with CSS?

Home Forums Support How to add borders around elements with CSS?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1267865
    Christian

    I would like to add a solid black 1px border around the white content boxes on my site. I also am considering to add a border around the featured images of each post. I imagine there is a CSS code for this, but I’m not savvy about it sometimes. Can you show me what code I need to add in order to achieve this? Thank you.

    #1267873
    Leo
    Staff
    Customer Support

    Hi there,

    Try this:

    .separate-containers .inside-article, .sidebar .widget, .post-image img {
        border: 1px solid #000;
    }

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

    Let me know if this helps ๐Ÿ™‚

    #1267889
    Christian

    Awesome, yeah, thanks, that did it.

    #1267890
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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