HTML CSS examples for CSS Layout:Responsive Layout
make a responsive graphic frame for H2 Elements
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container {<!-- w ww . ja va 2 s .co m--> width:201px; height:100px; display:flex; flex-direction:row; flex-wrap:nowrap; } .item { flex-grow:2; } </style> </head> <body> <div class="container" style="background-color: yellow"> <div class="item" style="background-color: blue"></div> <div class="item" style="background-color: grey"></div> <div class="item" style="background-color: red"></div> </div> </body> </html>