Positioning, Float and Flex

Thinking of hanging a picture on the wall, I could hear the voices “Move it to the left” or “Move it to the right” or “move it to the above” and so on. During the design process, we sometimes need to put one element on a certain position.

How to position the element is very tricky sometimes as we might need put a minus sign in front of a number. We’ve learned where we should put “relative” or “absolute” when positioning an element. My fatal typing mistake made the elements hanging there. By the way, “Position: Fixed” is also a great thing to learn. I really like this feature.

To align block elements with Floats rather than Flex, it is very complicated. Flex make things easier. I need to practice more with “justify-content” and “display: column” and so on. Wish to learn more about Flex properties including “Flex-shrink” and “Flex grow” etc.

Leave a Reply

Your email address will not be published. Required fields are marked *