TIL coding
  • Initial page
  • 排版
  • Flexbox
  • Grid
  • jQuery
  • Untitled
  • JavaScript
    • An Introduction to JavaScript
    • Hello, world!
    • Code structure
    • The modern mode, "use strict"
    • Variables
    • Data types
    • Type Conversions
    • Operators
    • Comparisons
    • Interaction: alert, prompt, confirm
    • Conditional operators: if, '?'
    • Logical operators
    • Loops: while and for
    • The "switch" statement
    • Functions
    • Function expressions and arrows
    • JavaScript specials
    • Comments
    • Ninja code
    • Automated testing with mocha
    • Polyfills
    • Objects
    • Garbage collection
    • Symbol type
    • Object methods, "this"
    • Object to primitive conversion
    • Constructor, operator "new"
    • Methods of primitives
    • Numbers
    • Strings
    • Arrays
    • Array methods
    • Iterables
    • Map, Set, WeakMap and WeakSet
    • Object.keys, values, entries
    • Destructuring assignment
    • Date and time
    • JSON methods, toJSON
    • Recursion and stack
    • Rest parameters and spread operator
    • Closure
    • The old "var"
    • Global object
    • Function object, NFE
    • The "new Function" syntax
    • Scheduling: setTimeout and setInterval
    • Decorators and forwarding, call/apply
    • Function binding
    • Currying and partials
    • Arrow functions revisited
    • Property flags and descriptors
    • Property getters and setters
    • Prototypal inheritance
    • F.prototype
    • Native prototypes
    • Prototype methods, objects without __proto__
    • The “class” syntax
    • Class inheritance
    • Static properties and methods
    • Private and protected properties and methods
    • Extending built-in classes
    • Class checking: "instanceof"
    • Mixins
    • Error handling, "try..catch"
    • Custom errors, extending Error
    • Introduction: callbacks
    • Promise
    • Promises chaining
    • Error handling with promises
    • Promise API
  • Bootstrap
    • Navbar
Powered by GitBook
On this page

Was this helpful?

Grid

grid container display: grid grid-template-columns: a b c ..(px,%,rem,fr,auto) grid-template-rows: a b c ..(px,%,rem,fr,auto) grid-template-rows(columns): repeat(times(auto-fill, auto-fit), a b c ..(px,%,rem,fr,auto)) grid-template-rows(columns): minmax(a(min), b(max)) grid-gap grid-row-gap: a (px,%,rem,fr,auto) grid-column-gap: a (px,%,rem,fr,auto) grid-template-areas: "a b c .." "a b c .." " .. "

grid items grid-column: a / b (lines) grid-column: a / b (lines) justify-self (horizon) stretch / start / center / end align-self (vertical) stretch / start / center / end justify-items (horizon all) stretch / start / center / end align-items (vertical all) stretch / start / center / end grid-area: area name; grid-area: horizontal line to start at / vertical line to start at / horizontal line to end at / vertical line to end at;

PreviousFlexboxNextjQuery

Last updated 6 years ago

Was this helpful?