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 6940365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:44:34+00:00 2026-05-27T12:44:34+00:00

I have encountered a problem today when i imeplement a correction in our project.

  • 0

I have encountered a problem today when i imeplement a correction in our project.

What i found is that the outerWidth for h2 in IE 7 is shorter than in IE8 (FF, Chrome etc).

Here is my code:

var h2width = $('.test h2').outerWidth(true)

h2width is 135px in IE8 and 78px in IE7.

Do you have any ideas for that?

Thanks in advance!

Edit :

For prevent this problem, i have added the code for differenciate the browsers.

if ($.browser.msie && $.browser.version.substr(0, 1) <= 7) {
var h2width = $('.test h2').outerWidth(true) + 57;
} else {
var h2width = $('.test h2').outerWidth(true);
}
  • 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-05-27T12:44:35+00:00Added an answer on May 27, 2026 at 12:44 pm

    Browsers render HTML differently so this isn´t that strange.
    Use Firebug or other development tool to view the actual size of your h2 tag. They are most likely different.

    Also notice that your selector $('.test h2') returns a collection of matched elements.

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

Sidebar

Related Questions

Today I have encountered a problem that required me to determine the maximum index
I have encountered a problem that I have not come accross yet when setting
I have encountered a problem in my application. I have two forms, one that
I have encountered a most annoying problem that occurs on the PWD variable when
I have encountered a problem in my program that has me somewhat stumped. I
I encountered an interesting thing today that I have never noticed before. It appears
I have encountered a problem. When I use jQuery to load a page that
Hi Today I encountered a new problem with MouseWheel I have written some codes
I am doing my A2 computing project in Delphi and have encountered a problem
I have encountered a problem in that I already have a composite primary key

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.