File Input accept Attribute
The HTML5 revolution provided us several simple but important attributes like
placeholder. There's another one you may want to know about:
accept attribute is useful for
input[type=file] elements. Let's have a look at it!
I'll use Twitter's upload button to illustrate a good usage of the
<input type="file" name="media_empty" accept="image/gif,image/jpeg,image/jpg,image/png,">
accept attribute gets a comma-separated list of mime types for files desired file types. In this case, Twitter is allowing the user to upload common image formats.
Chances are that any Web designers using our Ghostlab browser testing app, which allows seamless testing across all devices simultaneously, will have worked with responsive design in some shape or form. And as today's websites and devices become ever more varied, a plethora of responsive images...
For quite a long time now websites with the so called "parallax" effect have been really popular.
In case you have not heard of this effect, it basically includes different layers of images that are moving in different directions or with different speed. This leads to a...
We all know that you can make shapes with CSS and a single HTML element, as I've covered in my CSS Triangles and CSS Circles posts. Triangles and circles are fairly simply though, so as CSS advances, we need to stretch the boundaries...