$(document).width() in chibi?
optikfluffel opened this issue · comments
Hi :)
How do I do $(document).width()
as known in jQuery with chibi?
Thanks
$('#foobar').css('width') will return the width of element. Chibi will first look for any width set via style but if none found, return computed width.
As it's a CSS value, it will include units ('px') but it's fairly trivial task to remove this if you need to work with the number.