"Calendar Display Media Layout"
Bootstrap 4.1.1 Snippet by johndrova

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="media d-flex align-items-center"> <p class="calendar " > 21<em>Juni</em> </p> <div class="media-body "> <h3> Why do we use it? </h3> <p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s </p> </div> </div> <div class="media d-flex align-items-center"> <p class="calendar " > 31<em>Desember</em> </p> <div class="media-body "> <h3> Where does it come from? - <small>NewYear 2019</small> </h3> <p> when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, </p> </div> </div> <div class="media d-flex align-items-center"> <p class="calendar " > 30<em>Desember</em> </p> <div class="media-body "> <h3> What is Lorem Ipsum? - <small>Old Boston City Hall</small> </h3> <p> but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum </p> </div> </div> <p><a href="https://bootsnipp.com/mrmccormack" target="_blank">Ref : Bootstrap 3.1.0 Snippet by mrmccormack</a></p> </div>
body { margin-top:18px } /* for grey scale http://codepen.io/beben-koben/pen/ckKzh THIS NOT WORKING in Safari and Chrome */ .grayscale { filter: url(#grayscale); filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); } /*Hover effects*/ .grayscale:hover { filter: none; -moz-filter: none; -webkit-filter: none; } /*Default state for brightness has to be specified specifically*/ img.brightness:hover { -webkit-filter: brightness(0); } /* calendar css Ref: http://codepen.io/chelovekov/pen/ayKAn */ /* Ref : Bootstrap 3.1.0 Snippet by mrmccormack */ .calendar { margin:.25em 10px 10px 0; padding-top:5px; float:left; width:80px; background:#ededef; background:-webkit-gradient(linear,left top,left bottom,from(#ededef),to(#ccc)); background:-moz-linear-gradient(top,#ededef,#ccc); font:bold 30px/60px Arial Black,Arial,Helvetica,sans-serif; text-align:center; color:#000; text-shadow:#fff 0 1px 0; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; position:relative; -moz-box-shadow:0 2px 2px #888; -webkit-box-shadow:0 2px 2px #888; box-shadow:0 2px 2px #888 } .calendar em { display:block; font:normal bold 11px/30px Arial,Helvetica,sans-serif; color:#fff; text-shadow:#00365a 0 -1px 0; background:#04599a; background:-webkit-gradient(linear,left top,left bottom,from(#04599a),to(#00365a)); background:-moz-linear-gradient(top,#04599a,#00365a); -moz-border-radius-bottomright:3px; -webkit-border-bottom-right-radius:3px; border-bottom-right-radius:3px; -moz-border-radius-bottomleft:3px; -webkit-border-bottom-left-radius:3px; border-bottom-left-radius:3px; border-top:1px solid #00365a } .calendar:before,.calendar:after { content:''; float:left; position:absolute; top:5px; width:8px; height:8px; background:#111; z-index:1; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; -moz-box-shadow:0 1px 1px #fff; -webkit-box-shadow:0 1px 1px #fff; box-shadow:0 1px 1px #fff } .calendar:before { left:11px } .calendar:after { right:11px } .calendar em:before,.calendar em:after { content:''; float:left; position:absolute; top:-5px; width:4px; height:14px; background:#dadada; background:-webkit-gradient(linear,left top,left bottom,from(#f1f1f1),to(#aaa)); background:-moz-linear-gradient(top,#f1f1f1,#aaa); z-index:2; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px } .calendar em:before { left:13px } .calendar em:after { right:13px }

Related: See More


Questions / Comments: