Skip to content

Instantly share code, notes, and snippets.

View AvraamMavridis's full-sized avatar
🎯
Focusing

Avraam Mavridis AvraamMavridis

🎯
Focusing
View GitHub Profile
@AvraamMavridis
AvraamMavridis / 3-hidden-css-tips.md
Created August 23, 2016 08:02 — forked from nepsilon/3-hidden-css-tips.md
3 hidden CSS tips — First published in fullweb.io issue #62

3 hidden CSS tips

1. Use empty-cells to style table empty cells:

Surprisingly the browser support is quite good and extends back to IE8. Convenient to give less visual predominance to empty cells.

table {
  empty-cells: hide;
}
@AvraamMavridis
AvraamMavridis / 3-hidden-html-tips.md
Created August 17, 2016 12:46 — forked from nepsilon/3-hidden-html-tips.md
3 hidden HTML tips — First published in fullweb.io issue #61

3 hidden HTML tips

1. Click label to auto-focus on input:

A big plus for a good UX that all modern browsers support. Note that the pairing happens between the label’s for attribute and the input’s id attribute, not its name.

<label for="username">Fiscal Year</label>
<input type="name" name="username" id="username" />