Test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<!DOCTYPE html> | <!DOCTYPE html> | ||
<html> | <html> | ||
< | <head> | ||
<style> | |||
.flex-container { | |||
display: flex; | |||
flex-wrap: wrap; | |||
background-color: DodgerBlue; | |||
} | |||
.flex-container > div { | |||
background-color: #f1f1f1; | |||
width: 100px; | |||
margin: 10px; | |||
text-align: center; | |||
line-height: 75px; | |||
font-size: 30px; | |||
} | |||
</style> | |||
</head> | |||
<body> | <body> | ||
<h1>The flex-wrap Property</h1> | |||
<div class=" | <p>The "flex-wrap: wrap;" specifies that the flex items will wrap if necessary:</p> | ||
< | |||
< | <div class="flex-container"> | ||
< | <div>1</div> | ||
<div>2</div> | |||
<div>3</div> | |||
<div>4</div> | |||
<div>5</div> | |||
<div>6</div> | |||
<div>7</div> | |||
<div>8</div> | |||
<div>9</div> | |||
<div>10</div> | |||
<div>11</div> | |||
<div>12</div> | |||
</div> | </div> | ||
<p>Try resizing the browser window.</p> | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 05:51, 24 July 2020
<!DOCTYPE html>
The flex-wrap Property
The "flex-wrap: wrap;" specifies that the flex items will wrap if necessary:
1
2
3
4
5
6
7
8
9
10
11
12
Try resizing the browser window.