gacattac Posted March 20, 2007 Share Posted March 20, 2007 How can I place text on images without the text actually being part of the image? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 20, 2007 Share Posted March 20, 2007 Use the image as a background for a container that you put the text in, such as a div, span, or a table cell. You can specify that with CSS: <div style="background: url(bg.jpg);"> You will need to play around with the width, height, and positioning of the text with padding to get the text to show up where you want it. Link to comment Share on other sites More sharing options...
gacattac Posted March 20, 2007 Author Share Posted March 20, 2007 Use the image as a background for a container that you put the text in, such as a div, span, or a table cell. You can specify that with CSS:<div style="background: url(bg.jpg);"> You will need to play around with the width, height, and positioning of the text with padding to get the text to show up where you want it. Thanx... I'm not sure if I'm doing it right... It's not working Link to comment Share on other sites More sharing options...
BigAl75 Posted March 20, 2007 Share Posted March 20, 2007 Do you have a link or some code for us to look at?Look at the source for this:img bg for div Link to comment Share on other sites More sharing options...
aalbetski Posted March 20, 2007 Share Posted March 20, 2007 I learned a lot here:http://www.mandarindesign.com/ 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