Jump to content

[Share] Add a Line on top/bottom of Text Block

Recommended Posts

We will use some CSS code to add line like this.

If you can't make it work, you can send link to page where you added Text Block, I can check easier.

image.thumb.png.02b81cae04af3db61a3cda0691856f00.png

#1. First, find ID of Text Block.

In my example it is: #block-yui_3_17_2_1_1719906734967_2500

image.png.60fbff4a5d649158fb09bf26340d774e.png

Next, use this code to Custom CSS box.

#block-yui_3_17_2_1_1719906734967_2500 {
p {
    border-top: 1px solid #000;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}
p:last-child {
    border-bottom: 1px solid #000 !important;
}}

image.thumb.png.8b76cd82abc2ccc0e585cf2744088da5.png

#3. Result

image.thumb.png.02b81cae04af3db61a3cda0691856f00.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Replies 0
  • Views 602
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.