Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Padding on markdown blocks when going over two lines on mobile


Question

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

Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

You can set same height for 3 boxes, add to Home > design > Custom CSS

body#collection-5e94620e3f49493c11943980 .markdown-block {
      min-height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
}

 

Edited by tuanphan

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post
  • 0

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).

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...