The bootstrap classes can be used in template files for setting the width of particular divs across all screen width. This can be done instead of using the @media tag in CSS. While updating the theme or when creating new HTML forms, This can be used. Here are the width and corresponding tags are given… Continue reading How to add standard width to a ‘div’ using bootstrap classes.
Tag: Screen Size
How to get the current screen size/browser window with JavaScript
We can use window.innerWidth and window.innerHeight to get the current screen size of a page. Window.innerWidth The read-only Window property innerWidth returns the interior width of the window in pixels. This includes the width of the vertical scroll bar, if one is present. More precisely, innerWidth returns the width of the window’s layout viewport. Example:var… Continue reading How to get the current screen size/browser window with JavaScript