• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 72
  • Last Modified:

Setting max-height causing large text to show up in padding area

HI,
I am attaching an html file :
In this there are two entries... And the text part in each entry i have set max-height to be 60px..
In the first one as the height is < 60px the padding area which is empty area just under the text shows up.
whereas in the next entry since the height of text is more than 60px . The text is getting overlapped over the padding area.

How can i prevent this...I want to show max text of 60px in this area followed by the empty padding area no matter what the size of text is.

Thanks
Archive.zip
0
Rohit Bajaj
Asked:
Rohit Bajaj
1 Solution
 
Shahid ThaikaSole ProprietorCommented:
In the div where you have set 'max-height: 40px;', also set overflow to either hidden or auto;

style="max-height: 40px;overflow: hidden;"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now