Show browser window size when developing websites
A useful script to show the size of your browser window when developing for the web.
It’s often useful to view the size of your browser window when developing websites, so you can add media queries where required. Add the following code below the opening body tag
<!-- START Code to show window size --> <script type="text/javascript"> function jqUpdateSize(){ // Get the dimensions of the viewport var width = $(window).width(); var height = $(window).height(); $('#jqWidth').html(width); $('#jqHeight').html(height); }; $(document).ready(jqUpdateSize); // When the page first loads $(window).resize(jqUpdateSize); // When the browser changes size </script> <div style="position: fixed; top: 0; left: 0; color: #000;background-color: #fff;padding: 0 3px ;z-index: 9999999999;"> <p style="float: left; font-size: 10px;"> <span id="jqWidth">0</span><br /> <span id="jqHeight">0</span> </p> </div><!-- END Code to show window size -->
Obviously remember to remove when the site goes live!
-
HTML email signature in Apple Mail
Step by step guide on how to add an HTML signature to Apple Mail.
-
Secure your WordPress Blog
A guide to securing your WordPress website.
-
Remove the shadow from Mac Screen Grabs
How to remove the shadow from Apple Screengrabs.
-
10 Useful Sites for Web Developers
Some useful websites for web developers.
-
3 FREE Apps to protect your PC
A few free apps to help you protect your PC.
-
Web Browsing Tips #1: Find in Page
Find copy in page in a web page.
-
Web Browsing Tips #2: Tabbed Windows
Using tabbed windows in your web browser.
-
Web Browsing Tips #3: Keyboard Shortcuts
Some web browsing keyboard shortcuts.
-
Redirect your site the Search Engine Friendly way
Using a 301 redirect is important when you change your website URL or web page URL.
-
Remove the WordPress Meta Tag from your Blog
Remove the WordPress meta tag from your WordPress site with this small function.
-
Stay secure, use more than one password
We need passwords for everything, but how can we stay secure and have multiple passwords without having to remember them all.
-
Forward your emails to one address
Find out how, using cPanel, you can forward your emails to one email address.