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
Post a Comment