Tsallaka zuwa abun ciki
Justice Tech School

Dimensions and Position

width and height get content size, innerWidth adds padding, outerWidth adds border, offset gives page position.

Example
$('#box').width();
$('#box').outerHeight(true);
$('#box').offset().top;

Exercise

Include padding.

$('#b').Width()

Quiz Test

Which gives page position?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.