title: How to create italic box in css?
body: <p>How to create italic box in css like this </p>
  
  <p><a href="https://i.stack.imgur.com/prkQu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/prkQu.jpg" alt="enter image description here"></a></p>
  
  <p>my code is </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.ml {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .ml li {
    display: inline-block;
    border: solid 1px #000;
    font-style: italic;
    padding: 5px 10px;
  }
  
  .ml li.active,
  .ml li:hover {
    background: #000;
    color: #ffffff
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="ml"&gt;
    &lt;li class="active"&gt;day&lt;/li&gt;
    &lt;li&gt;week&lt;/li&gt;
    &lt;li&gt;month&lt;/li&gt;
    &lt;li&gt;year&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>