Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8216821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:15:52+00:00 2026-06-07T12:15:52+00:00

monitor is a box which shows enlarged text everytime mouse is hovered on a

  • 0

“monitor” is a box which shows enlarged text everytime mouse is hovered on a part of the page(web)

“+” and “-” are the two buttons which help me increase and decrease the box size,respectively.

The problem arises when text in the box overflows the box and makes my code look inefficient. Here is a sample for making the plus button increase box size(text size)
In simple words I just want to put some limit on this box so that its size gets a threshold value and a maximum value

$('div.monitor').animate({ 'fontSize': '+=10pt' }, 'fast'); return false; break;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:15:53+00:00Added an answer on June 7, 2026 at 12:15 pm

    I don’t like the logic of the other answer given by @Raminson. It says “if size of the font is less than 40px then increase the size by 10”. Then the size limit (the box container) could be a maximum of 49px (if initial condition is =39px). I would do something like this:

    while ($('div.monitor').css('font-size') != "40px") {
        $('div.monitor').animate({ 'fontSize': '+=1px' }, 'fast');
    }
    

    this way, it increases 1 at the time and gets to the desired value = 40px.

    You could even do:

    while ($('div.monitor').css('font-size') != "40px") {
        $('div.monitor').css( 'fontSize', '+=1px');
    }
    

    and it would look like an animation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to monitor which of MY classes were accessed during Grails app
I want to monitor the windows system tray for icon text changes. How can
I have created my own light box, the problem is that it shows centered
I am trying to monitor changes to select box (or nested option elements) with
There is an actual running Java ServerPages (JSP) application within a *NIX box which
I have an ASP.NET page which contains a large number of gridviews, which contain
Is it possible to somehow monitor who Likes my Facebook page, by intercepting the
Monitor.Enter and Monitor.Exit are designed to be called from the same thread. But, what
Function Monitor() As ActionResult Dim db = New QuarterDBContext() Dim items As IEnumerable(Of SelectListItem)
For developing an devices monitor system, I am using a InetAdress isReachable method to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.