Jump to content

text on image


gacattac

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...