# .innerHeight()

## innerHeight ( ) Returns: Number version added: 1.2.6

Description: Get the current computed height for the first element in the set of matched elements, including padding but not border.

This method returns the height of the element, including top and bottom padding, in pixels.

This method is not applicable to `window` and `document` objects; for these, use `.height()` instead.

## Examples:

#### Example: Get the innerHeight of a paragraph.

    <!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>css demo</title>

      <style>

      p {
        margin: 10px;
        padding: 5px;
        border: 2px solid #666;
      }

      </style>

      <script src="//code.jquery.com/jquery-1.10.2.js"></script>
    </head>
    <body>

    <p>Hello</p>
    <p></p>

    <script>

    var p = $( "p:first" );
    $( "p:last" ).text( "innerHeight:" + p.innerHeight() );

    </script>

    </body>
    </html>

#### Demo: