css - h1:after badge not lining up properly -


i'm trying add badge after h1 on page: http://69.175.87.138/~plnew/portfolio-item/verde-rosa/ unfortunately not lining h1. have tried number of things display correctly: negative margins, different display: values, different line-heights, etc. nothing seems working thought ask here.

h1 {      font-size: 55px;      line-height: 35px;      font-weight: 300;      color: #595959;      margin-bottom: 15px;      font-family: "lust-display",sans-serif;  }  h1::after {      display: inline;      margin-left: 10px;      font-size: 14px;      font-family:"freight-sans-pro", lato, sans-serif;      background-color: #c9b39e;      color: #fff;      border-radius: 5px;      padding: 5px;      content:"marble";  }
<h1 class="entry-title">verde rosa</h1>

jsfiddle

not sure if looking based on short description, have tried vertical-align?

h1::after {   display: inline;   margin-left: 10px;   font-size: 14px;   font-family: "freight-sans-pro", lato, sans-serif;   background-color: #c9b39e;   color: #fff;   border-radius: 5px;   padding: 5px;   content: "marble";   vertical-align: middle; } 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -