Elie.w Posted December 14, 2011 Share Posted December 14, 2011 How can I make my text go over an image without setting the image as a background for the text,iI want the text to go over a small part of my image only, is there a way to make my image not move from it's position whatsovever? Link to comment Share on other sites More sharing options...
niche Posted December 14, 2011 Share Posted December 14, 2011 position:absolute; possibly with z-index Link to comment Share on other sites More sharing options...
ShadowMage Posted December 14, 2011 Share Posted December 14, 2011 To elaborate a little more on niche's response: Put the image and the text in a container (div). Give the container position: relative; so that the container will be the element from which the text is placed in relation to. Then, as niche mentioned, give the text position: absolute; and tweak it's top and/or left values to position it where you want it. You can also use bottom or right if you want it positioned from those sides, but don't use both top and bottom or both left and right. You might also have to set a z-index on the text. Link to comment Share on other sites More sharing options...
niche Posted December 14, 2011 Share Posted December 14, 2011 Thanks for the clarification shadowMage. Link to comment Share on other sites More sharing options...
Elie.w Posted December 15, 2011 Author Share Posted December 15, 2011 Thanks a bunch guys, I appreciate it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.