I created a dropcap using the :first-letter pseudo
class and it displays properly on Chrome, IE, and Edge but is not working as expected in Firefox.
What seems to be the issue?
The problem lies in its height.
Below is the CSS code I've used:
.dropcap:first-letter {
font-size: 3em;
float: left;
margin-top: .15em;
padding: 2px 20px;
border-radius: 6px;
margin-right: 15px;
padding: 3px 22px;
}
.dropcap.dc-bg-primary:first-letter {
background-color: #1a73e9;
color: #fff;
}
<p class="dropcap dc-bg-primary">[content here]</p>
You can view the codepen link here.
NOTE: My browser versions are Chrome 69.0.3497.100 (Official Build) (64-bit) and Firefox 62.0.3 (32-bit).