Singlish lesson: Tok Kong
Hokkien term meaning “superb” or “top of the line”.
In Mandarin, it's possible to write it as “督公 (dū gōng) ”
“Have you used CSS grid to build layout? It's super tok kong!”
Source: The Coxford Singlish Dictionary
🥑 Developer Advocate 🥑
Singlish lesson: Swee
Hokkien for “pretty” or “beautiful”. Also used to describe something as properly or correctly done.
“This layout do until very swee leh.”
Source: The Coxford Singlish Dictionary
Singlish lesson: Jia lat
Hokkien adjective literally meaning "to eat strength". Means that a task is onerous and consumes one's energy. Can sometimes be used to denote being in trouble.
“Have you inspected Twitter lately? The markup nest until very jia lat leh.”
Source: The Coxford Singlish Dictionary
Singlish lesson: Senget
Malay for “slanted” or “crooked”.
“How come the last item in the row senget wan?”
Source: The Coxford Singlish Dictionary
designed for laying out documents
designed for laying out text
designed for laying out 2D data in a tabular format
designed for very explicit positioning without much regard for other elements in the document
describes a CSS box model optimised for user interface design and designed for laying out more complex applications and webpages
Defines a two-dimensional grid-based layout system,
optimised for user interface design.
“Grid works from the container in,
other layout methods start with the item”
—Rachel Andrew
inline-block
Item A
Item B
Item C
Item D
Item E
Item F
float
Item A
Item B
Item C
Item D
Item E
Item F
flex
Item A
Item B
Item C
Item D
Item E
Item F
Grid is the only layout technique that establishes a relationship between rows and columns of grid items.
Define your grid.
Place items in the grid.
Singlish lesson: Si bei
Originated from Teochew, means “very” or “extremely”
Literally translates to “死父 (sǐ fù) ” or “dead father”
“The CSS grid roll-out in 2017 was sibei successful.”
Same properties, more values
grid-template-columns: subgrid <line-name-list>?
grid-template-rows: subgrid <line-name-list>?
The subgrid
keyword indicates to the browser the nested grid will use the same sizing as its parent along the relevant axis.
.subgrid-container {
grid-columns: 2 / 5; /* placement for the subgrid container itself */
display: grid; /* you must still apply a display: grid to the subgrid */
grid-template-columns: subgrid;
grid-template-rows: subgrid;
}
Header font is Ostrich Sans by Tyler Finck.
Body font is Libre Baskerville by Pablo Impallari.