Category Archives: web development

W3C Validation Solutions

Converting traditional/old HTML code to CSS friendly alternatives to achieve W3C validation. Error: The frameborder attribute on the iframe element is obsolete. Use CSS instead. iframe { border: none; } Error: The cellspacing attribute on the table element is obsolete. … Continue reading

Posted in computing, web development | Leave a comment

PHP Find end of the month/last day of month

<?php echo date(“t-m-Y”); ?> The ‘t’ option of date returns the number of days in the month.

Posted in computing, php, web development | Leave a comment

HTTP Compression

Test if a site has compression enabled: http://www.whatsmyip.org/http-compression-test/ Enable compression by adding the following line to .htaccess: AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript  

Posted in linux, web development | Leave a comment

Responsive Notes

Twitter Bootstrap – responsive framework.

Posted in computing, web development | Leave a comment

Mobile web dev

Viewports: CSS: Place before any media queries. @viewport { width: 480px; zoom: 1; } Meta tag (better support): <meta name=”viewport” content=”width=320″> <meta name=”viewport” content=”width=device-width”> <meta name=”viewport” content=”width=320,initial-scale=1″> // Set zoom to full size <meta name=”viewport” content=”initial-scale=1″>

Posted in computing, web development | Leave a comment

iPhone turn off auto text resize (html/css)

To stop an iPhone from automatically resizing text on a webpage use: html { -webkit-text-size-adjust: none; }

Posted in apple, web development | Leave a comment

PHP Regular Expressions

Notes: A regular expression is enclosed between two forward slashes “//“. Hash signs # or tildes ~ can also be used (these characters are called delimiters). eg. $exp = “/php/“;    – search for the occurence of string ‘php’ Special/meta-characters: * Match … Continue reading

Posted in computing, web development | Leave a comment

Google translate Firefox problem (not working on Apple Mac)

If the Google Translate drop down menu of languages does not open, or appears empty when the Google Translate tool is clicked in Firefox, the problem is usually caused by an issue with the Flash plugin, or the Flash plugin … Continue reading

Posted in computing, web development | Leave a comment