Update tile-layout-using-inline-block.md
This commit is contained in:
@ -10,7 +10,7 @@ Align items horizontally using `display: inline-block` to create a 3-tile layout
|
|||||||
- Use `width: calc((900px / 3))` to divide the width of the container evenly into 3 columns.
|
- Use `width: calc((900px / 3))` to divide the width of the container evenly into 3 columns.
|
||||||
- Set `font-size: 0;` on `.tiles` to avoid whitespace.
|
- Set `font-size: 0;` on `.tiles` to avoid whitespace.
|
||||||
- Set `font-size: 20px` to `h2` in order to display the text.
|
- Set `font-size: 20px` to `h2` in order to display the text.
|
||||||
- Note: If you use relative unit like `em` then using `font-size: 0;` to fight whitespace between the blocks might cause a side effect
|
- Note: If you use relative units (e.g. `em`), using `font-size: 0;` to fight whitespace between blocks might cause side effects.
|
||||||
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
|||||||
Reference in New Issue
Block a user