dcss flex code example

Example 1: flex box in css

<!--basic--flex--layout-->
<html>
	<head>
		<style>
			.parent{
              display:  flex or inline-flex;
              flex-direction: row  or column;
              flex-wrap: wrap or wrap-reverse;
 			}
		</style>
	</head>
	<body>
		<div class="parent">
			<div class="child-1"></div>
			.
			.
			.
		</div>
	</body>
</html>

Example 2: flex parameters

flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]

Example 3: what does flex do

The flex CSS property sets how a flex item will grow or shrink to fit the space
available in its flex container. It is a shorthand for flex-grow , flex-shrink ,
and flex-basis .

Tags:

Misc Example