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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:30:12+00:00 2026-05-28T03:30:12+00:00

Take a look a this . I’m accessing the button’s height and width using

  • 0

Take a look a this. I’m accessing the button’s height and width using jquery’s methods, and via accessing .css("height"), and I get two wrong answers.

I’m at 100% browser zoom. What’s going on here?

Inner Height: 46, Inner Width: 196
Height: 46, Width: 196
CSS Height:44px, CSS Width: 184px
(The actual button dimensions are 200 X 50)
  • 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-28T03:30:13+00:00Added an answer on May 28, 2026 at 3:30 am

    You are overlooking the fact the by default, the boxing policy for CSS rendering excludes the border from the width-height. You have border-top = 1, border-bottom = 3, and border-right = border-left – 7, which accounts for the missing dimension.

    To get the computed amounts for the width/height of an element, including it’s border+padding you can use outerWidth()/outerHeight()

    Also, in my case, I get all the values properly:

    Inner Height: 46, Inner Width: 186

    Height: 46, Width: 186

    CSS Height:46px, CSS Width: 186px

    (The actual button dimensions are 200 X 50)

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

Sidebar

Related Questions

Take a look at this snazy plugin: http://remysharp.com/2007/12/28/jquery-tag-suggestion/ ** it's real small Source: http://remysharp.com/downloads/tag.js
Please take a look at this example: #include <iostream> #include <vector> #include <string> using
Take a look at this jsfiddle . I've used the jQuery dialogs before and
Take a look at this code : public class Program { [import]IMain Main {get;
Take a look at this; http://jsfiddle.net/k2zyz/ Why is the 100% width tab exceeding the
take a look at this button In Chrome this looks fine but switching to
Take a look at this method: [textButton addTarget:self action:@selector(articleModalWillAppear:) forControlEvents:UIControlEventTouchDown]; When the button is
Take a look at this piece of code The height of the div is
Take a look at this code: $GET = array(); $key = 'one=1'; $rule =
take a look at this validation demo: http://jquery.bassistance.de/validate/demo/ the error messages are placed on

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.