Please sign in to comment.
adding css tricks
- Loading branch information...
Showing with 8 additions and 0 deletions.
|@@ -0,0 +1,8 @@|
|# Known CSS Ticks|
|Here we collect useful CSS tricks we use to solve known issues in layouts we design.|
|1. If you want to keep the width of the centred layout within a specific width|
|add `maxWidth` and some pixel value, like 600, on the container, but also add|
|`width 100%` to the same container to prevent the container's content collapsing|
|![Center with the maxWidth and resizable with flex, no media query](../images/centerMaxWidth.png)|
BIN +78.5 KB images/centerMaxWidth.png
Binary file not shown.