csgcarl Posted May 17, 2007 Share Posted May 17, 2007 Hello. I would like to put some text over the top of an image... how do I do this make the image a background or? Sorry if this is wrong place. Carl Quote Link to comment https://forums.phpfreaks.com/topic/51871-solved-text-on-image/ Share on other sites More sharing options...
chigley Posted May 17, 2007 Share Posted May 17, 2007 <div style="background: url('image.png'); background-repeat: no-repeat;">Text</div> Try that, wrong forum though! Quote Link to comment https://forums.phpfreaks.com/topic/51871-solved-text-on-image/#findComment-255664 Share on other sites More sharing options...
phast1 Posted May 17, 2007 Share Posted May 17, 2007 Well, you could use a background on a DIV or layered DIVs to accomplish that if you want the text to remain as regular text on the page (so that the search engines can see it).. Otherwise, you COULD use PHP to dynamically modify the image file and write text over top of it, but this would only be useful if you have dynamic text.. For static text, you should either use DIVs or a photo editing program.. Quote Link to comment https://forums.phpfreaks.com/topic/51871-solved-text-on-image/#findComment-255669 Share on other sites More sharing options...
csgcarl Posted May 17, 2007 Author Share Posted May 17, 2007 Hey, Thanks alot for that, and sorry didnt know where to put it Quote Link to comment https://forums.phpfreaks.com/topic/51871-solved-text-on-image/#findComment-255671 Share on other sites More sharing options...
Lumio Posted May 17, 2007 Share Posted May 17, 2007 Please click "Tpoc solved" Quote Link to comment https://forums.phpfreaks.com/topic/51871-solved-text-on-image/#findComment-255674 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.