html - Using pull-right inside element aligns the text with the center. How do I align it with the baseline -
so, i've looked around so, , i've found inverse of question everywhere. makes me feel either rarer occurrence, or trivial can't figure out.
https://jsfiddle.net/je5dpqrl/
the above jsfiddle shows have <h2> element within i've put anchor tag pull-right class of bootstrap. since want anchor display in smaller font, i'm using font-weight , font-size. now, since it's floating, text centered.
is there way align text baseline of title , <a> element same?
you can adjust vertical position of <a> line-height (and use example em make relative size):
.cl { font-weight: normal; font-size: 40%; display: inline-block; line-height:4em }
Comments
Post a Comment