ARJ DESIGNS Posted April 22, 2012 Share Posted April 22, 2012 <style type="text/css">p:before { content: url(images/filename.gif) }</style><p>Text goes here</p>How do I position text vertically to image? Link to comment Share on other sites More sharing options...
eTianbun Posted April 22, 2012 Share Posted April 22, 2012 There are better ways of doing what you are trying to do! Anyway, if you want the image to align with the <p>, maybe you can display the <p> as inline/inline-block;EXAMPLE: <p style="display:inline"> Text goes here!</p> 1 Link to comment Share on other sites More sharing options...
ARJ DESIGNS Posted April 26, 2012 Author Share Posted April 26, 2012 "inline-block" worked for me.Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now