Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<header class="top_bar dis_flex">
  <span id="ham"><i class="fas fa-bars "></i></span>
  <ul class="l-menu dis_flex">
    <li class="l-menu-txt flex_align_center"><a href="#">PB MAGAZINE</a></li>
    <li class="l-menu-txt flex_align_center"><a href="#">PB STORY</a></li>
    <li class="l-menu-txt flex_align_center">
      <div class="popup_menu dis_flex">
  <div class="textlink dis_flex">
    <div class="st1">
      <ul class="flex_col_bet">
        <li class="st1_link1"><a href="#">전체</a></li>
        <li class="st1_link1"><a href="#">브레드</a></li>
        <li class="st1_link1"><a href="#">케이크</a></li>
        <li class="st1_link1"><a href="#">샌드위치&#47;샐러드</a></li>
      </ul>
    </div>
    <div class="st2">
      <ul class="flex_col_bet">
        <li class="st2_link2"><a href="#">선물</a></li>
        <li class="st2_link2"><a href="#">디저트&#47;스낵</a></li>
        <li class="st2_link2"><a href="#">음료&#47;아이스</a></li>
        <li class="st2_link2"><a href="#">간편식</a></li>
      </ul>
    </div>
  </div>

  <div class="img-box">
    <a href="#">
      <img src="https://www.paris.co.kr/wp-content/uploads/KakaoTalk_Image_2021-04-19-17-06-24.jpeg" alt="">  
    </a>
    
  </div>

</div>
      <a href="#">PRODUTS</a>
    </li>
  </ul>
  <div class="c-menu flex_align_center">
     <strong>
      <a href="#">PARIS BAGUETTE</a>
     </strong>
     
  </div>
  <ul class="r-menu dis_flex">
    <li class="r-menu-txt flex_align_center"><a href="#">STORE</a></li>
    <li class="r-menu-txt flex_align_center"><a href="#">DELIVERY</a></li>
    <li class="r-menu-txt flex_align_center"><a href="#">PROMOTION</a></li>
    <li class="r-menu-txt flex_align_center"><a href="#"><i class="fas fa-search"></i></a></li>
  </ul>
</header> 

<!-- 여기부터 구상해주세요 -->
<section class="back_popup">          <!-- 안보이다가 햄버거 메뉴 보이면 나타내기 -->
  <div class="Side_popup">
    
  </div>
</section>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}
body,
ul,
li {
  margin: 0px;
  padding: 0px;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
span {
  display: block;
}
img {
  display: block;
  width: 100%;
}
/* 노말라이즈 끝 */
/* 라이브러리 */
.flex_col_bet {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dis_flex {
  display: flex;
}
.flex_align_center {
  display: flex;
  align-items: center;
}
/* 라이브러리 */
/* 커스텀 */
body {
  height: 10000px; /*임시*/
}
.top_bar {
  display: flex;
  justify-content: space-around;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(2, 53, 134, 1);
  width: 100%;
  height: 100px;
  text-align: 50%;
}
.top_bar > #ham {
  display: none;
  height: 100%;
  font-size: 2rem;
  position: relative;
  color: white;
}
.top_bar > #ham > .fa-bars {
  position: absolute;
  top: 50%;
  transform: translatey(-50%);
}
.top_bar > .l-menu > .l-menu-txt {
  margin: 0px 15px;
  position: relative;
}
.top_bar > .l-menu > .l-menu-txt > a {
  line-height: 100px;
  height: 100%;
  color: white;
  font-size: 18px;
  font-weight: bold;
}
.top_bar > .l-menu > .l-menu-txt:last-child {
  position: relative;
}
.top_bar > .c-menu > strong > a {
  color: white;
  font-size: 2rem;
}
.top_bar > .r-menu .r-menu-txt {
  position: relative;
  margin: 0px 15px;
}

.top_bar > .r-menu > .r-menu-txt > a {
  line-height: 100px;
  height: 100%;
  color: white;
  font-size: 18px;
  font-weight: bold;
}
/* 커스텀 끝 */
/* 팝업 */
.popup_menu {
  opacity: 0;
  visibility: hidden;
  display: flex;
  background-color: white;
  position: absolute;
  top: 100%;
  justify-content: space-between;
  padding: 20px;
  width: 600px;
  height: 280px;
  text-align: left;
  transition: all 0.2s;
}
.popup_menu .img-box {
  width: 200px;
  height: 200px;
}
.popup_menu > .textlink {
  width: 60%;
  height: 80%;
}
.popup_menu > .textlink .st1,
.st2 {
  width: 50%;
}
.popup_menu > .textlink st1_link1 {
  height: 100%;
}
.popup_menu > .textlink a {
  color: #939393;
  font-weight: 600;
  display: block;
}
/* 팝업 끝 */
/* 후버 적용 */
.top_bar > .l-menu > .l-menu-txt > a:hover::after {
  content: "";
  position: absolute;
  bottom: 0%;
  left: 0%;
  width: 100%;
  height: 2px;
  background-color: white;
  animation-name: menu;
  animation-duration: 0.2s;
}
.top_bar > .l-menu > .l-menu-txt:last-child:hover > .popup_menu {
  transition: all 0.3s;
  opacity: 1;
  visibility: visible;
}
.top_bar > .r-menu > .r-menu-txt > a:hover::after {
  content: "";
  position: absolute;
  bottom: 0%;
  left: 0%;
  width: 100%;
  height: 2px;
  background-color: white;
  animation-name: menu;
  animation-duration: 0.2s;
}
.top_bar > .r-menu > .r-menu-txt:last-child > a::after {
  display: none;
}
.popup_menu > .textlink .st1_link1:hover a {
  color: #023586;
}
.popup_menu > .textlink .st2_link2:hover a {
  color: #023586;
}

@keyframes menu {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
/* 후버 적용 끝 */

/* 여기서부터 구현 */
@media (max-width: 1070px) {
  .top_bar {
    height: 60px;
  }
  .top_bar .l-menu > .l-menu-txt,
  .r-menu > .r-menu-txt {
    display: none;
  }
  .top_bar > .c-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .top_bar > .r-menu > .r-menu-txt:last-child {
    display: inline-block;
    flex-direction: column;
    justify-content: center;
    margin-right: 30px;
  }
  .top_bar > .r-menu > .r-menu-txt:last-child a {
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
  }
  .top_bar {
    display: flex;
    justify-content: space-between;
  }

  .top_bar > #ham {
    padding-left: 20px;
    display: block;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console