Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Commit 27658a2

Browse files
authored
Add info for images
1 parent 9da5f6d commit 27658a2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ From the class names, it's easy to tell what they do. See effect when added to a
3535
* `.grid` only sets display to grid.
3636
* `.flex` only sets display to flex.
3737
* `.flex center` sets display to flex, justify-content & align-items are set to center.
38-
* `flex-j-center` only sets display to flex & justify-content to center.
39-
* `flex-a-center` only sets display to flex & justify-content to center.
38+
* `.flex-j-center` only sets display to flex & justify-content to center.
39+
* `.flex-a-center` only sets display to flex & justify-content to center.
4040
* Class names with suffix `-auto` uses same styles as their look-alikes above, but make use of `margin: 0 auto;`. When applied on an element (with width changed to less than 100%), the element is horizontally centered.
4141
* `.b-container` uses same style as `block-auto`, but with width set & is responsive already. To be used on the body element or html element(s) acting as outermost containers.
4242
* **Exception:** `x-auto` sets overflow to auto.
43+
* `.img-wrapper` has same qualities of `.flex-center`, but with overflow set to hidden - to be used on the parent of an `img` element.
44+
* `.img-wrapper-rounded` has same qualities of `.img-wrapper` but with border-radius set to 50% - to be used on the parent of an `img` element.
45+
* `.img-default` sets img max-width to 100% and height to auto - (should be) used on the img element whose parent uses `.img-wrapper` or `.img-wrapper-rounded`.
4346

4447
You have total control over what the width of the element (and margin in the case of `-auto`) should be. More details & tutorial comming soon on this topic.
4548

0 commit comments

Comments
 (0)