How to align text HTML5 CSS -


i mother noob coding sorry if dumb question. have looked thru tutorials , can't seem able align text properly. want align next image (near bottom).

so started doing bottom: 0 aligns near top. there text near top, , seems adjust near that. https://jsfiddle.net/xo1sje8m/

.h01 {    position: absolute;    text-align: center;    width: 100%;    left: 0;    bottom: 0;  }
<h2 class="h01">helllo every1</h2>

not sure going wrong. here screenshot of aligns (screenshot).

if want position image, use move distance element above it

margin-top: 200px; 

using vertical-align on image tells nearby text align according image.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -