Jump to content

Changing margin on specific text in text blocks

Go to solution Solved by creedon,

Recommended Posts

Site URL: https://www.birdmafia.com/stockists

Been working on updating the info on this page, and now I need to fix the layout as it looks terrible...

All, I’m having a hard time figuring out how to change this page (https://www.birdmafia.com/stockists) so that there is no margin between the store name (text link) and the city name below it. Inspecting through google it looks like there is top and bottom margin on the <p> tags which I wouldn’t need (except for the bold state names, but I could just leave another empty line there.)

Anybody interested in helping me understand what custom code to put on page?

Would it just be:

p { margin: 0em }

Or is there something better so it wouldn’t effect the bold titles?

 

I posted this question to the squarespace reddit.... the only response I've received is to change margin you need to use the text-block id.  Is that the only way? I do have a Chrome extension to get the id's of the blocks if that's all I can do, but I'd need to make each entry on this webpage it's own text block to accomplish what I'm looking for.  I'm hoping I can add code just for the Non-Bold and Non-links text of this page.

Link to comment
  • Solution

I think you can do this without CSS. I assume you are looking to go from...

1790987137_ScreenShot2021-07-05at10_13_22AM.png.1e9d939b5864c8d711d356dd40fef2d5.png

 

...to...

1416363519_ScreenShot2021-07-05at10_18_51AM.png.3c8bb4459228967c81af2f243151bfbe.png

 

Simply use shift return or enter instead of return/enter when you want to go to the next line in the text editor.

Please see Fixing text formatting - Fix line spacing.

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

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.