block by yonitru c8478189ab8eb6d51d413496d7a2efc0

flexbox1

Full Screen

index.html

<!DOCTYPE html>
<html>
  <head>
    <title>flexbox</title>
    <link rel="stylesheet" href="includes/style.css">
    <style type="text/css">
    * {
  padding:0px;
  margin:0px;
}

header,nav,aside,article,section,footer, main {
  display:block;
}

.flex {
  display:flex;
  flex-direction:row;
  
  width: 350px;
    height: 300px;
}
.flex > div {
    flex: auto;
    width: 30px;
    transition: width 0.6s ease-out;
}
.flex > div:nth-child(1){ background: #00b33c; }
.flex > div:nth-child(2){ background: #004d1a; }
.flex > div:nth-child(3){ background: #ff0055; }

.flex > div:hover {
  width: 180px;
}</style>
  </head>
  <body>
    <div class="flex">
      <div></div>
      <div></div>
      <div></div>
    </div>
  </body>
</html>

gistfile1.txt

<!DOCTYPE html>
<html>
  <head>
    <title>flexbox</title>
    <link rel="stylesheet" href="includes/style.css">
    <style type="text/css">
    * {
  padding:0px;
  margin:0px;
}

header,nav,aside,article,section,footer, main {
  display:block;
}

.flex {
  display:flex;
  flex-direction:row;
  
  width: 350px;
    height: 300px;
}
.flex > div {
    flex: auto;
    width: 30px;
    transition: width 0.6s ease-out;
}
.flex > div:nth-child(1){ background: #00b33c; }
.flex > div:nth-child(2){ background: #004d1a; }
.flex > div:nth-child(3){ background: #ff0055; }

.flex > div:hover {
  width: 180px;
}</style>
  </head>
  <body>
    <div class="flex">
      <div></div>
      <div></div>
      <div></div>
    </div>
  </body>
</html>