Jump to content

Padding on markdown blocks when going over two lines on mobile

Recommended Posts

Posted

Site URL: https://www.boutique14.co.uk/home1

Hi,

 

Bit of a tricky one (for me). On this page: https://www.boutique14.co.uk/home1 I have three markdown boxes underneath images. On desktop they look fine (see attached image). They are the ones with a pink background saying "Personal Service";  "Custom Samples"; "Matching Stationery".

 

However, on a screen size where the text goes over onto two lines the markdown box obviously changes shape to accommodate. This can be on any device, but a good example is on mobile in landscape (see second attached image). This throws out the visuals on this section of the page and looks messy.

 

Is there some way I can CSS it so that if one box goes over onto two lines then they all do? 

 

Thanks.

 

Desktop.JPG

IMG_0546.PNG

  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply
Posted

Thank you as ever. Is there any way I can keep the height of the blocks at 18px in normal layout and achieve the same effect? 50px is a bit too deep when the text is all on one line. Thanks. (You're great by the way).

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.