Difference between Section vs Article elements in HTML

In the W3 wiki page about structuring HTML5, it says: <section>: Used to either group different articles into different purposes or subjects, or to define the different sections of a single article. And then displays an image that I cleaned up: It also describes how to use the <article> tag (from same W3 link above): … Read more

Setting a ‘s display as table-cell

How about using a label? That way you get the functionality of the button, but the visibility of the label. Tested in Firefox and Chrome. Updated example for form submission. No JavaScript is involved with the clickability of the cell region Works without a fixed height on the container Works when a different cell has … Read more

Set margin/padding for each page to print (html/css)?

I encountered exactly the same problem and after searching a lot I found an interesting article offering a combinative solution which you can read here. In short it combines two methods: Using position: fixed technique Using thead tbody tfoot If you only use the first method you will face the overlapping issue, in the same … Read more

Emoji rendered in Chrome have different widths than in other browsers

I had the same issue, and found out that it happened on non-retina screens only. To fix it, we applied a margin through a media-query like this: <span class=”friends”><span class=”emoji”>👥</span> Friends</span> <style> @media not screen and (min-device-pixel-ratio: 2), not screen and (min-resolution: 192dpi) { span.emoji { margin-right: 5px; } } </style> This is a pretty … Read more