Tsallaka zuwa abun ciki
Justice Tech School

Width and Height

width, height, innerWidth and outerHeight measure elements.

Example
var w = $("#box").width();
var h = $("#box").height();
var iw = $("#box").innerWidth();
var ow = $("#box").outerWidth(true);

Exercise

Include padding.

$("b").Width()

Quiz Test

Which includes margin?

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