css - Inside div placing span next to p element -


here code

     <div>         <p>hello nirmesh</p>         <span> <img src="x.png"/></span>      </div> 

i want show image next <p> tag , not below it. please me resolve this

making p tag, defaulted "block" "inline-block" element, let other elements flow along after it. it's best add these rules in external stylesheet, illustration:

<div>   <p style="inline-block; margin-right: 5px;>hello nirmesh</p>   <span><img src="x.png"/></span> </div> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -