Jump to content

How to indent a bulleted list in a markdown block

Recommended Posts

  • Replies 10
  • Views 2.3k
  • Created
  • Last Reply

Top Posters In This Topic

I used the following code to fix part of the issue:

.markdown-block ul li:before {
    content: "\2022";
    margin-right: 10px;
     font-weight: bolder;
      font-size: 1em;
    color: #296374;
}

Now the bullets are spaced away from the image, but I'd like the wrapped text to align with the text above it, not with the bullets. Any suggestions?

 

Link to comment
  • 5 months later...
7 hours ago, Dovely2023 said:

trying to remove the extra space on the second line of her bullets on her websites.

Try something like the following.

#block-65cb9ff047e78b14b4c3417f ul {
  
  line-height : 1.25em;
  
  }

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
19 hours ago, creedon said:
#block-65cb9ff047e78b14b4c3417f ul {
  
  line-height : 1.25em;
  

Thank you, @creedon. This adjusted the overall line height for the bulleted section, which is great, but I'm actually trying to remove the indent on the second lines that wrap below the bullets. I basically want to remove the white space highlighted above with the purple arrows. Do you know how I could edit this, by chance? Any help would be greatly appreciated. 

Link to comment
1 hour ago, Dovely2023 said:

I'm actually trying to remove the indent on the second lines that wrap below the bullets. I basically want to remove the white space highlighted above with the purple arrows.

The issue is the following ruleset.

#our-design-process [data-rte-list] li>*:first-child::before {
  background-image: url(https://images.squarespace-cdn.com/content/v1/6020418f11ba307a8d020eb8/15dad810-994a-4ab5-b8d1-5e61f1431318/MDG_CustomBullets_Green.png?format=1000w);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  height: 18px;
  min-width: 0;
  vertical-align: middle;
  width: 25px
}

Remove the ruleset, make a copy somewhere, and try the following.

#our-design-process ul[ data-rte-list ] li > *:first-child::before {

  background-image : url( 'https://images.squarespace-cdn.com/content/v1/6020418f11ba307a8d020eb8/15dad810-994a-4ab5-b8d1-5e61f1431318/MDG_CustomBullets_Green.png' );
  background-repeat : no-repeat;
  background-size : contain;
  content : '';
  height : 18px;
  margin-left : -30px;
  min-width : 30px;
  vertical-align : middle;
  width : 0px;
  
  }

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
On 3/6/2024 at 5:04 PM, creedon said:

The issue is the following ruleset.

#our-design-process [data-rte-list] li>*:first-child::before {
  background-image: url(https://images.squarespace-cdn.com/content/v1/6020418f11ba307a8d020eb8/15dad810-994a-4ab5-b8d1-5e61f1431318/MDG_CustomBullets_Green.png?format=1000w);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  height: 18px;
  min-width: 0;
  vertical-align: middle;
  width: 25px
}

Remove the ruleset, make a copy somewhere, and try the following.

#our-design-process ul[ data-rte-list ] li > *:first-child::before {

  background-image : url( 'https://images.squarespace-cdn.com/content/v1/6020418f11ba307a8d020eb8/15dad810-994a-4ab5-b8d1-5e61f1431318/MDG_CustomBullets_Green.png' );
  background-repeat : no-repeat;
  background-size : contain;
  content : '';
  height : 18px;
  margin-left : -30px;
  min-width : 30px;
  vertical-align : middle;
  width : 0px;
  
  }

Let us know how it goes.

@creedon that worked perfectly. Thank you so much for your help. We really appreciate it.

Link to comment

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.