"Timeline (responsive)"
Bootstrap 3.0.3 Snippet by xrozix

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <nav class="navbar navbar-bg navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Birthday Song</a> </div> <div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav navbar-right"> <li><a href="../login">로그인</a></li> </ul> </div> </div> </nav> <div class="content-container container"> <div class="page-header"> <h2 id="timeline">매년 내 생일의 1위 곡은?</h2> </div> <ul class="timeline"> <li class="timeline-inverted"> <div class="timeline-badge">14</div> <div class="timeline-panel"> <div class="timeline-heading"> <h4 class="timeline-title">아이유 - 소격동</h4> <p><small class="text-muted">2014년 가온차트 52주차</small></p> </div> <div class="timeline-body"> <iframe width="560" height="315" src="https://www.youtube.com/embed/GHu39FEFIks" frameborder="0" allowfullscreen></iframe> <hr> <div class="btn-group"> <button type="button" class="btn btn-primary btn-sm"> 공유하기 </button> </div> </div> </div> </li> <li class="timeline-inverted"> <div class="timeline-badge">13</div> <div class="timeline-panel"> <div class="timeline-heading"> <h4 class="timeline-title">소녀시대 - Oh!</h4> <p><small class="text-muted">2013년 가온차트 52주차</small></p> </div> <div class="timeline-body"> <img src="http://img.maniadb.com/images/album/409/409005_1_f.jpg"></img> <hr> <div class="btn-group"> <button type="button" class="btn btn-primary btn-sm"> <i class="glyphicon glyphicon-music"></i> Youtube </button> </div> </div> </div> </li> <li class="timeline-inverted"> <div class="timeline-badge">12</div> <div class="timeline-panel"> <div class="timeline-heading"> <h4 class="timeline-title">조권, 가인 - 우리 사랑하게 됐어요</h4> <p><small class="text-muted">2012년 가온차트 52주차</small></p> </div> <div class="timeline-body"> <img src="http://img.maniadb.com/images/album/403/403660_1_f.jpg"></img> <hr> <div class="btn-group"> <button type="button" class="btn btn-primary btn-sm"> <i class="glyphicon glyphicon-music"></i> Youtube </button> </div> </div> </div> </li> </ul> </div>
body { padding-top: 60px; } .navbar-default { background-color: #63a69f; border-color: #63a69f; } .navbar-default .navbar-brand { color: #ffffff; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #ffffff; } .navbar-default .navbar-text { color: #ffffff; } .navbar-default .navbar-nav > li > a { color: #ffffff; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #ffffff; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #ffffff; background-color: #477873; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { color: #ffffff; background-color: #477873; } .navbar-default .navbar-toggle { border-color: #63a69f; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #477873; } .navbar-default .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #ffffff; } .navbar-default .navbar-link { color: #ffffff; } .navbar-default .navbar-link:hover { color: #ffffff; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #ffffff; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #477873; } } .content-container{ max-width: 750px; } iframe{ max-width: 100%; max-height: 100%; display: block; margin-left: auto; margin-right: auto; } img { max-width: 100%; max-height: 100%; display: block; margin-left: auto; margin-right: auto; } .timeline { list-style: none; padding: 20px 0 20px; position: relative; } .timeline:before { top: 0; bottom: 0; position: absolute; content: " "; width: 3px; background-color: #eeeeee; left: 50%; margin-left: -1.5px; } .timeline > li { margin-bottom: 20px; position: relative; } .timeline > li:before, .timeline > li:after { content: " "; display: table; } .timeline > li:after { clear: both; } .timeline > li:before, .timeline > li:after { content: " "; display: table; } .timeline > li:after { clear: both; } .timeline > li > .timeline-panel { width: 46%; float: left; border: 1px solid #d4d4d4; border-radius: 2px; padding: 20px; position: relative; -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175); } .timeline > li > .timeline-panel:before { position: absolute; top: 26px; right: -15px; display: inline-block; border-top: 15px solid transparent; border-left: 15px solid #ccc; border-right: 0 solid #ccc; border-bottom: 15px solid transparent; content: " "; } .timeline > li > .timeline-panel:after { position: absolute; top: 27px; right: -14px; display: inline-block; border-top: 14px solid transparent; border-left: 14px solid #fff; border-right: 0 solid #fff; border-bottom: 14px solid transparent; content: " "; } .timeline > li > .timeline-badge { color: #fff; width: 50px; height: 50px; line-height: 50px; font-size: 1.4em; text-align: center; position: absolute; top: 16px; left: 50%; margin-left: -25px; background-color: #63A69F; z-index: 100; border-top-right-radius: 50%; border-top-left-radius: 50%; border-bottom-right-radius: 50%; border-bottom-left-radius: 50%; } .timeline > li.timeline-inverted > .timeline-panel { float: right; } .timeline > li.timeline-inverted > .timeline-panel:before { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto; } .timeline > li.timeline-inverted > .timeline-panel:after { border-left-width: 0; border-right-width: 14px; left: -14px; right: auto; } .timeline-badge.primary { background-color: #2e6da4 !important; } .timeline-badge.success { background-color: #3f903f !important; } .timeline-badge.warning { background-color: #f0ad4e !important; } .timeline-badge.danger { background-color: #d9534f !important; } .timeline-badge.info { background-color: #5bc0de !important; } .timeline-title { margin-top: 0; color: inherit; } .timeline-body > p, .timeline-body > ul { margin-bottom: 0; } .timeline-body > p + p { margin-top: 5px; } ul.timeline:before { left: 40px; } ul.timeline > li > .timeline-panel { width: calc(100% - 90px); width: -moz-calc(100% - 90px); width: -webkit-calc(100% - 90px); } ul.timeline > li > .timeline-badge { left: 15px; margin-left: 0; top: 16px; } ul.timeline > li > .timeline-panel { float: right; } ul.timeline > li > .timeline-panel:before { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto; } ul.timeline > li > .timeline-panel:after { border-left-width: 0; border-right-width: 14px; left: -14px; right: auto; }

Related: See More


Questions / Comments: