fmc

In this example below you will see how to do a fmc with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by n8rzz, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright n8rzz ©

Technologies

  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>fmc</title>
  
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">

  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="fmc-container">
    <div class="fmc-top">
        <div class="button-container">
            <ul class="button-list">
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
            </ul>
        </div>
        <div class="fmc-screen">
            <div class="fmc-screen-line">
                no line
            </div>
            <div class="fmc-screen-line">
                line
            </div>
            <div class="fmc-screen-line">
                line
            </div>
            <div class="fmc-screen-line">
                line
            </div>
            <div class="fmc-screen-line">
                line
            </div>
            <div class="fmc-screen-line">
                line
            </div>
            <div class="fmc-screen-line">
                line
            </div>
        </div>
        <div class="button-container">
            <ul class="button-list">
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
                <li class="button-list-item">
                    <a href="#">BTN</a>
                </li>
            </ul>
        </div>
        
    </div>
    <div class="fmc-bottom">
        Bottom
    </div>
</div>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.12.0/lodash.min.js'></script>

  

</body>

</html>

/*Downloaded from https://www.codeseek.co/n8rzz/fmc-XjkjZQ */
body {
  background-color: #222222;
  color: #ffffff;
  font-family: sans-serif;
}

ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.fmc-container {
  height: 800px;
  width: 550px;
  padding: 20px;
  background-color: #333333;
  border: 1px solid #ffffff;
  border-radius: 7px;
}

.fmc-top {
  height: 50%;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  border: 1px solid blue;
  border-bottom: 3px solid #ffffff;
}

.fmc-top > * {
  height: 300px;
  text-align: center;
}

.button-list-container {
  height: 300px;
  background-color: #333333;
}

.button-list {
  padding-top: 58px;
}

.button-list-item:first-child {
  margin-top: 0;
}

.button-list-item {
  margin-top: 24px;
}

.button-list-item > a {
  margin-left: 5px;
  margin-right: 5px;
  padding: 6px 12px;
  background-color: #111111;
  border-radius: 5px;
}

.fmc-screen {
  width: 70%;
  margin: 0 10px;
  background-color: rgba(112, 127, 95, 0.2);
  border-radius: 40px;
}

.fmc-screen-line {
  height: 40px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(112, 127, 95, 0.4);
}

Comments