Jump to content

[Share] How to create 2 or 3 columns in Text Block

Recommended Posts

Posted

If CSS code doesn't work, you can send link to page where you use Text Block + exact code you added, I will check again.

#A. Text with 2 Columns

To create a 2 column text like this example.

image.png.b6e414d91d5b74c89ddf9b32556a2eb6.png

image.png.d8d925b786963d45361abc29fda86712.png

#1. First, make text italic

image.png.e4442ddc6ce31f75313af1b4b0e38920.png

#2. Find ID of Text Block

In my example, it is: #block-yui_3_17_2_1_1732529540567_12005

image.png.5ffa8778ea7bfa28fafd5e32e79e54e6.png

#3. Use this code to Custom CSS box

#block-yui_3_17_2_1_1732529540567_12005 {
  em {
  font-style: normal; /* remove italic style */
   min-width: 500px;
  display: inline-block;
}
  @media screen and (max-width:767px) {
    em {
      min-width: 200px;
    }
  }
}

image.thumb.png.0ed08c029bbbab753f405e70fcbfaaa8.png

#B. Text with 3 Columns

To create 3 columns like this.

image.png.731749bc6f2eceae8ba946d7d775157e.png

image.png.861d3f1953c0db32665ffe11b894fb77.png

#1. First, make first column Italic, second column bold, third column underline like this

image.png.3a313bc8c277631c3d450fcd5ae185c6.png

#2. Next, find ID of Text Block. Use above tool.

In my example, it is: #block-yui_3_17_2_1_1732529540567_12005

image.png.3cc13a55972412145d0abaa9c8dc7bc7.png

#3. Use this code to Custom CSS box

#3. Use this code to Custom CSS box
#block-yui_3_17_2_1_1732529540567_12005 {
  p {
    display: flex;
  }
  em, strong, span {
  font-style: normal; /* remove italic style */
    font-weight: normal; /* remove bold style */
    text-decoration: none !important; /* remove underline */
   min-width: 250px;
  display: inline-block;
}
  /* bold text */
  strong {
    min-width: 250px;
  }
  /* underline text */
  span {
    min-width: 300px;
  }
  @media screen and (max-width:767px) {
    /* italic text */
    em {
     min-width: 100px;
    }
    /* bold text */
    strong {
     min-width: 120px;
    }
  }
}

image.thumb.png.6d75e91e45962e4a50f8e5a450e24198.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!)

  • Replies 0
  • Views 78
  • 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.