html - How to move this text onto another line -


i got text want move onto line,

this how it's looking now,

enter image description here

this how want it,

enter image description here

html:

<div id="content">     <div id="header">         <p>         <img class="header-image" src="http://www.nab.com.au/content/dam/nab/personal/credit-cards/apply-for-a-credit-card/images/icon-apply-online.gif" />         <span id="header-text-1">helo00oo to</span>         <span id="header-text-2">fruitland</span>         </p>     </div>     <div id="body">         <div id="body-title">fruit login</div>         <div id="box-one"> radio list 2 radio buttons</div>         <div id="box-two"> checkbox</div>         <div id="box-three">textboxes x 2</div>         <div id="body-footer">textboxes x 2</div>     </div> </div> 

css:

.header-image { vertical-align: text-top; }  #header-text-2{     font-size: 2.6em;     line-height: 0.8em; } 

here's fiddle if want try - should work on browsers.

try position:relative. add this:

#header-text-2{     font-size: 2.6em;     line-height: 0.8em;     position:relative;     top:34px;     left:-86px; } 

and adjust prefered position playing top , left rules

demo


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -