Solved

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

Posted on 2016-09-11
1
48 Views
Last Modified: 2016-09-19
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
Comment
Question by:Rohit Bajaj
1 Comment
 
LVL 9

Accepted Solution

by:
Shahid Thaika earned 500 total points
ID: 41793286
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now