For some silly reason standard css wouldn’t allow the file upload button to be styled. Naturally the very smart people have found ways around this. Although there are various method, I like this simple one the most. The HTML <div id=”file” class=”btn”>Upload Photo</div> <input type=”file” name=”file” /> The CSS #file { display:none; }​ The Javascript…

Read More

This is perhaps a toddler level responsive web basic. But it took me a good 20 minutes to figure it out. If you want to write conditional css3 for one viewport range, you must have the other condition also within a viewport condition. For example to use: @media screen and (max-width: 540px) { #box{ width:300px;}…

Read More