<! DOCTYPE  html > < htmllang = " en" > < head> < metacharset = " UTF-8" > < metaname = " viewport" content = " width=device-width, initial-scale=1.0" > < title> </ title> < scriptsrc = " https://kit.fontawesome.com/d37465fc7c.js" crossorigin = " anonymous" > </ script> < style> 
    *  { 
      margin :  0; 
      padding :  0; 
      font-family :  sans-serif; 
      list-style :  none; 
      text-decoration :  none; 
    } 
    .middle  { 
      position :  absolute; 
      top :  50%; 
      left :  50%; 
      transform :  translate ( -50%,  -50%) ; 
    } 
    .menu  { 
      width :  300px; 
      border-radius :  8px; 
      overflow :  hidden; 
    } 
    .item  { 
      border-top :  1px solid #2980b9; 
      overflow :  hidden; 
    } 
    .btn  { 
      display :  block; 
      padding :  16px 20px; 
      background :  #3498db; 
      position :  relative; 
      color :  white; 
    } 
    .btn::before  { 
      content :  "" ; 
      position :  absolute; 
      width :  14px; 
      height :  14px; 
      background :  #3498db; 
      left :  20px; 
      bottom :  -7px; 
      transform :  rotate ( 45deg) ; 
    } 
    .btn i  { 
      margin-right :  10px; 
    } 
    .smenu  { 
      background :  #333; 
      overflow :  hidden; 
      transition :  max-height 0.3s; 
      max-height :  0; 
    } 
    .smenu a  { 
      display :  block; 
      padding :  16px 26px; 
      color :  white; 
      font-size :  14px; 
      margin :  4px 0; 
      position :  relative; 
    } 
    .smenu a::before  { 
      content :  "" ; 
      position :  absolute; 
      width :  6px; 
      height :  100%; 
      background :  #3498db; 
      left :  0; 
      top :  0; 
      transition :  0.3s; 
      opacity :  0; 
    } 
    .smenu a:hover::before  { 
      opacity :  1; 
    } 
    .item:target .smenu  { 
      max-height :  10em; 
    } 
   </ style> </ head> < body> < divclass = " middle" > < divclass = " menu" > < liclass = " item" id = " profile" > < ahref = " #profile" class = " btn" > < iclass = " fa-solid fa-user" > </ i> </ a> < divclass = " smenu" > < ahref = " " > </ a> < ahref = " " > </ a> </ div> </ li> < liclass = " item" id = " messages" > < ahref = " #messages" class = " btn" > < iclass = " fa-solid fa-envelope" > </ i> </ a> < divclass = " smenu" > < ahref = " " > </ a> < ahref = " " > </ a> < ahref = " " > </ a> </ div> </ li> < liclass = " item" id = " settings" > < ahref = " #settings" class = " btn" > < iclass = " fa-solid fa-gear" > </ i> </ a> < divclass = " smenu" > < ahref = " " > </ a> < ahref = " " > </ a> </ div> </ li> < liclass = " item" > < ahref = " " class = " btn" > < iclass = " fa-solid fa-right-from-bracket" > </ i> </ a> </ li> </ div> </ div> </ body> </ html> 
 
<! DOCTYPE  html > < htmllang = " en" > < head> < metacharset = " UTF-8" > < metaname = " viewport" content = " width=device-width, initial-scale=1.0" > < title> </ title> < scriptsrc = " https://kit.fontawesome.com/d37465fc7c.js" crossorigin = " anonymous" > </ script> < style> 
    *  { 
      margin :  0; 
      padding :  0; 
    } 
    a  { 
      text-decoration :  none; 
    } 
    li  { 
      list-style :  none; 
    } 
    body  { 
      font-family :  Arial,  Helvetica,  sans-serif; 
      background-color :  #f4f4f4; 
    } 
    .navbar  { 
      background-color :  #3b5998; 
      overflow :  hidden; 
      height :  63px; 
    } 
    .navbar a  { 
      float :  left; 
      display :  block; 
      color :  #f2f2f2; 
      text-align :  center; 
      font-size :  17px; 
      padding :  14px 16px; 
    } 
    .navbar ul  { 
      margin :  8px 0 0 0; 
    } 
    .open-side i  { 
      padding-top :  18px; 
    } 
    .navbar a:hover  { 
      background-color :  #ddd; 
      color :  #000; 
    } 
    .side-nav  { 
      height :  100%; 
      width :  0; 
      position :  fixed; 
      z-index :  1; 
      top :  0; 
      left :  0; 
      background-color :  #111; 
      opacity :  0.8; 
      overflow-x :  hidden; 
      padding-top :  60px; 
      transition :  0.5s; 
    } 
    .side-nav a  { 
      padding :  10px 10px 10px 30px; 
      font-size :  22px; 
      color :  #ccc; 
      display :  block; 
      transition :  .3s; 
    } 
    .side-nav a:hover  { 
      color :  orange; 
    } 
    .side-nav .btn-close  { 
      position :  absolute; 
      top :  0; 
      right :  22px; 
      font-size :  36px; 
    } 
    #content  { 
      transition :  margin-left .5s; 
      padding :  20px; 
    } 
    @media ( max-width : 568px) { 
      .navbar ul  { 
        display :  none; 
      } 
    } 
    
   </ style> </ head> < body> < navclass = " navbar" > < spanclass = " open-side" > < ahref = " #" onclick = " openSideMenu ( ) " > < iclass = " fa-solid fa-bars fa-2xl" > </ i> </ a> </ span> < ulclass = " navbar-nav" > < li> < ahref = " #" > </ a> </ li> < li> < ahref = " #" > </ a> </ li> < li> < ahref = " #" > </ a> </ li> < li> < ahref = " #" > </ a> </ li> </ ul> </ nav> < divid = " side-menu" class = " side-nav" > < ahref = " #" class = " btn-close" onclick = " closeSideMenu ( ) " > × </ a> < ahref = " #" > </ a> < ahref = " #" > </ a> < ahref = " #" > </ a> < ahref = " #" > </ a> </ div> < divid = " content" > < h1> </ h1> </ div> < script> 
    xySideMenu =  document. getElementById ( "side-menu" ) ; 
    xyContent =  document. getElementById ( "content" ) ; 
    function  openSideMenu ( )  { 
      xySideMenu. style. width =  "250px" ; 
      xyContent. style. marginLeft =  "250px" ; 
    } 
    function  closeSideMenu ( )  { 
      xySideMenu. style. width =  "0" ; 
      xyContent. style. marginLeft =  "0" ; 
    } 
   </ script> </ body> </ html>