28

TIL (Today I learned) - Manuel Matuzović

 4 years ago
source link: https://www.tuicool.com/articles/I3MNjyE
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

TIL (Today I learned)

  • TIL #12

    Overflowing block-level elements with overflow set to scroll or auto are focusable in Firefox.

    MJjAvev.gif
  • TIL #11

    You can use conditional comments to target specific versions of Outlook.

    3eqMRzM.png!web
  • TIL #10

    You can turn the outline of an element to the _inside_ by setting the outline-offset property to a negative value. (Not supported in IE)

    7BBbamZ.png!web
  • TIL #9

    You can center a flex-item vertically and horizontally by applying margin: auto; to it.

    YjaQJjN.png!web
  • TIL #8

    If you press CMD/Ctrl and click on a property or property value in the style panel, @ChromeDevTools jumps directly to the respective css/scss file and line.

    uUVnuaE.gif
  • TIL #7

    About the @at-root directive. It moves nested styles out from within a parent selector or nested directive.

    7JbMRbB.png!web
  • TIL #6

    IE 11 requires a unit to be added to the third argument (flex-basis) of the flex property.

    bI7jyaJ.png!web
  • TIL #5

    You can use `navigator.connection` to get information about the connection like round-trip time, bandwidth, connection type (e.g. 3g, 4g) or if Data-Saver is enabled.

    bI3um2v.png!web
  • TIL #4

    The grid-auto-flow property takes up to two values. row, column, dense, row dense, or column dense.

    6jiEZz7.png!web
  • TIL #3

    You can pass an `options` object, which only has a single property, to the `focus()` method to prevent scrolling on focus.

    yqyYJbZ.png!web
  • TIL #2

    There's a tab-size property. It controls the width of the tab (U+0009) character.

    6fQri23.png!web
  • TIL #1

    How to get a random background-color (or any other value) each time I compile Sass.

    v2yUbeJ.png!web

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK