How (and why) to use display: table-cell (CSS)

After days trying to find the answer, I finally found display: table; There was surprisingly very little information available online about how to actually getting it to work, even here, so on to the “How”: To use this fantastic piece of code, you need to think back to when tables were the only real way to … Read more

Email Not Sending from Byethost Hosting

I deployed my website and I’m trying to send an email from my website that is hosted by Byethost and it displays a success message but for some reason the email is not being received. What might be the problem? Below you will find the PHP script.

Add Favicon to Website [duplicate]

Simply put a file named favicon.ico in the webroot. If you want to know more, please start reading: Favicon on Wikipedia Favicon Generator How to add a Favicon by W3C (from 2005 though)

JavaScript Loading Screen while page loads

You can wait until the body is ready:  Run code snippetExpand snippet Here is a JSFiddle that demonstrates this technique. Update Here is a modern version using promises. The promise is completely optional now, as it is only used for a delay. The DOMContentLoaded event will fire once the page is loaded.

HTML5 Local storage vs. Session storage

localStorage and sessionStorage both extend Storage. There is no difference between them except for the intended “non-persistence” of sessionStorage. That is, the data stored in localStorage persists until explicitly deleted. Changes made are saved and available for all current and future visits to the site. For sessionStorage, changes are only available per tab. Changes made are saved and available for the current page in that tab until … Read more

Can I set subject/content of email using mailto:?

Yes, look all tips and tricks with mailto: http://www.angelfire.com/dc/html-webmaster/mailto.htm mailto subject example:  Run code snippetExpand snippet mailto with content:  Run code snippetExpand snippet As alluded to in the comments, both subject and body must be escaped properly. Use encodeURIComponent(subject) on each, rather than hand-coding for specific cases. As Hoody mentioned in the comments, you can add line breaks by adding the following encoded sequence … Read more