how to add border around text

  • Hi! I am looking to add a black border around my text on my pages – can someone help me figure out how to do that?

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

  • Howdy infshnwetrust!

    The following code should give a black border around the text on your pages! To add this, go to https://wordpress.com/customize and paste it in the CSS section.

    .content-wrapper.full-width.with-featured-image {
        border-color: black;
        border-style: solid;
        border-width: 2px;
    }

    The ‘border-color’ property can be changed to any color you like. The ‘border-style’ can be changed to various types like solid, dashed, dotted, etc.. The border-width can be changed to how strong you want it to show as well.

    Let me know if you run into any problems.

  • Holy cannoli you’re a life saver … i was playing around with codes for 2 hours you’re a genius!!

  • Aww thanks! Themes in WordPress have codes that differ from one another. Learning to find the code is half the battle. If you ever want some tips on this, let me know and I’ll be glad to help!

    Until then, enjoy! Happy blogging!

  • The topic ‘how to add border around text’ is closed to new replies.