I have 31 div with the same class “.cal”. Is there any way to detect each div and if one (or many other) div do have overflow, the browser automatically add a html content remind users that this div is overflowed?
I know I should check clientHeight
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using jquery:
EDIT @JoJo explained me what I’ve missed from your description. So just put an inner wrapper into your
.caldiv and get height and width of the wrapper instead. If inner wrapper is larger than your.calthen the block is overflown. Proof of concept on jsfiddle