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

  • Home
  • SEARCH
  • 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 7726771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:17:59+00:00 2026-06-01T05:17:59+00:00

I have a very simple HTML/JS code, which expands the size of a div

  • 0

I have a very simple HTML/JS code, which expands the size of a div on mouse over and collapses it again on mouse out. The code looks like this:

CSS:

.sign-in-up {
    position: absolute;
    left: 780px;
    background-color: #8599b2;
    font-size: 9pt;
    line-height: 23px;
    color:white;
    text-align: center;
    height: 25px;        /* note this height 25px */
    width: 164px;
    overflow: hidden;
}

Then I have my div in HTML:

<div class="sign-in-up" id="sign-in-up"
     onmouseover="$(this).css('height','55px')"
     onmouseout= "$(this).css('height','25px')">
     my html goes here
</div>

This works perfectly fine in Firefox (from version 3 and up), Safari, Chrome, Opera and IE9 – but does not work on IE8 or IE7. When I mouse-over the div, visually nothing changes. I tried changing the onmouseover to be

onmouseover="$(this).css('height','55px');alert($(this).height())"

and the alert box shows correct height of 55px, however visually on screen nothing changes and the div is still shown as 25px height.

I’ve tried every possible thing there is – with exactly the same results. It seems like IE is changing the height of the div in the dom but is not redrawing the div on the screen to match its new height.

At this stage I’m totally lost. Any help is greatly appreciated.

Edit

Thank you all that replied. After much head banging against the wall (computer screen in this case), the issue turned out to be caused by interference from curvycorners – a javascript library to imitate rounded corners (border radius) in older versions of IE. Once it did its job it would actively prevent redraws of the affected elements.

After removing rounded corners, everything works fine, although it looks worse – but at least it works. I’ll investigate other options for rounded corners.

  • 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-01T05:18:00+00:00Added an answer on June 1, 2026 at 5:18 am

    Thank you all that replied. After much head banging against the wall (computer screen in this case), the issue turned out to be caused by interference from curvycorners – a javascript library to imitate rounded corners (border radius) in older versions of IE. Once it did its job it would actively prevent redraws of the affected elements.

    After removing rounded corners, everything works fine, although it looks worse – but at least it works. I’ll investigate other options for rounded corners.

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

Sidebar

Related Questions

I have this very simple CODE, which should generate me HTML, but all I
I have a very simple html. The red div is inside the blue div
I have this html page which is very simple, it contains a text box
I have a very simple Javascript (jQuery) code, which just add a class name
I have a very simple html page with the following javascript in it $(function()
Take a very simple case as an example, say I have this URL: http://www.example.com/65167.html
I'm doing something very simple that's just not working. I have an html page
So I have 4 pages. They are very simple. index.php (WORKS) <html> <form action=upload.php
I have found that my HTML is, to be honest, very clunky. Small, simple
I have a very simple Ember.js app which works correctly in IE and Chrome,

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.