CSS3: Flex-wrap in reverse

This entry is part 12 of 13 in the series CSS3

You might be surprised.  We can actually reverse the the flex-items.

<!DOCTYPE html>
<html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title>Codecrawl.com-Flexbox</title>
    <style>
        #flex-container {
            display: -webkit-flex;
            display: flex;
            width: 400px;
            height: 260px;
            background-color: gray;
            -webkit-flex-wrap: wrap-reverse;
            flex-wrap: wrap-reverse;
        }

        #flex-item {
            background-color: Silver;
            width: 100px;
            height: 100px;
            margin: 10px;
        }
    </style>
</head>
<body>
<div id='flex-container'>
    <div id='flex-item'>I am a content block A</div>
    <div id='flex-item'>I am a content block B</div>
    <div id='flex-item'>I am a content block C</div>
    <div id='flex-item'>I am a content block D</div>
    <div id='flex-item'>I am a content block E</div>
    <div id='flex-item'>I am a content block F</div>
</div>
</body>
</html>

Series Navigation<< CSS3: Flex-wrap
CSS3: Putting an order to a flex box >>