You are here : cssCSS 3flex

flex - CSS 3

The flex property specifies the length of the item, relative to the rest of the
flexible items inside the same container.The flex property is a shorthand for the flex-grow, flex-shrink, and the flex-basis properties.Note: If the element is not a flexible item, the flex property has no effect.


Syntax

flex: flex-grow flex-shrink flex-basis|auto|initial|inherit;


Example

#main div {    -webkit-flex: 1; /* Safari 6.1+ */    
	-ms-flex: 1; /* IE 10 */     flex: 1;}


Output / Return Value


Limitations


Alternatives / See Also


Reference