DEV Community

Discussion on: Build a responsive, position-free component with Blunt CSS. 🔪

Collapse
 
vaibhavkhulbe profile image
Vaibhav Khulbe

Don't know why but there are some formatting issues in this article. I'll remove this comment once the content is properly formatted. Here are the HTML codes:

  1. Add Blunt in your project: <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/f-prime/blunt/dist/blunt.min.css">

  2. HTML markup:

<div class="container auto-center h-100 row v-center h-center">
  <div class="card lg-w-40 md-w-40 sm-w-90 pt-4 pb-4 pl-2 pr-2">
    <div class="sm-col md-row lg-row md-v-center lg-v-center">
      <div class="sm-auto-center">
        <img class="rounded" src="https://randomuser.me/api/portraits/men/60.jpg">
      </div>
      <div class="sm-auto-center sm-text-center font-1p2 lg-ml-2 md-ml-2">
        <div class="name sm-pt-1p3 pb-5p font-2p2">Chris Wayne</div>
        <div class="subhead pt-2">Blunt Engineer</div>
        <div class="email pt-1 pb-0p5 font-1">chris@wayne.com</div>
        <div class="number font-1">(123) 456-7890</div>
      </div>
    </div>
  </div>
</div>