DEV Community

Anitha vedamoorthy
Anitha vedamoorthy

Posted on

Day 3 Today we learn about what is flex in css?

Flex is flexibility of item it can move easily in a container or border. It have two directions they are Column and Row. But default flex direction is Row and in css have property named justify content and align items

  1. ul { Display:flex; Justify content:centre; }
  2. Ul { Display:flex; Align items:end; }

Then,we discussed about margin and padding
Ul {
Margin:auto;
Padding:10px;
}

Happy learning😀

Top comments (0)