html - How do I get the text to align to the top of the space that it takes up? -
i've tried messing vertical-align, line-height, etc.

should show i'm trying do. put little red arrow show want text shifted to.
you'll need modify top margin in css or html, below 3 ways of doing so.
edit in css:
h2 { margin-top: 0px; } edit inline style in html:
<h2 style="margin-top="20px;"> remove "margin-top" inline style
override inline style:
if don't have access html can override inline style:
h2[style] { margin-top: 0px; } update:
based on comment on op, looks want move text 5px. may want use margin: 15px or margin: 20px line text top of grey box. examples above still apply.
Comments
Post a Comment