The viewport keyword¶

This keyword is a basic tool for finding out information about the viewport.


viewport.width¶

This property tells you how wide the viewport is.


viewport.height¶

This property tells you how tall the viewport is.