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.

enter image description here

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

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -