"contact box"
Bootstrap 3.3.0 Snippet by evarevirus

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="section"> <div class="top-border left"></div> <div class="top-border right"></div> <h1>CONTACT US</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> <a href="#">CONTACT US</a> </div>
* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: "PT Sans"; background-color: #ddd; color: #333; } .section { position: relative; width: 900px; max-width: 80%; border: 2px solid #333; border-top: none; text-align: center; margin: 60px auto; } .section h1 { position: relative; margin-top: -14px; display: inline-block; letter-spacing: 4px; } .top-border{ position: absolute; height: 2px; width: 24%; background-color: #333; } .right { right: 0; } .left { left: 0; } @media (max-width: 685px) { .top-border { width: 18%; } } .section p { width: 61%; margin: 20px auto 40px auto; line-height: 30px; } .section a { outline: 0; display: inline-block; padding: 20px; margin-bottom: 40px; width: 440px; max-width: 80%; background-color: #333; color: #fff; font-size: 22px; letter-spacing: 3px; transition: all 0.3s ease 0s; -moz-transition: all 0.3s ease 0s; -webkit-transition: all 0.3s ease 0s; } .section a:hover { background-color: #1D222D; } .section a:link, .section a:visited, .section a:link:hover, .section a:visited:hover { text-decoration: none; color: #fff; } @media (max-width: 500px) { .top-border { display: none; } .section { border-top: 2px solid #333; } .section h1 { margin: 20px 6px; } }

Related: See More


Questions / Comments: