Skip to content
Permalink
Browse files

adding css tricks

  • Loading branch information...
tombrewsviews committed Jan 26, 2019
1 parent 0895a43 commit 45c2805d9575fc2d00e17a4d4cfc69a0c2c99b36
Showing with 8 additions and 0 deletions.
  1. +8 −0 KnownCSSTricks.md
  2. BIN images/centerMaxWidth.png
@@ -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)
Binary file not shown.

0 comments on commit 45c2805

Please sign in to comment.
You can’t perform that action at this time.