thewindmaker Posted June 4, 2006 Share Posted June 4, 2006 Hi there everyone,Thanks for the great site for the help. Anyways I was wondering what is the html coding for puting an image on top of another one? and the coding for puting text on top of the pictures?Thanks Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 4, 2006 Share Posted June 4, 2006 You can position things on top of eachother, by using position:absolute; left:...px; top:...px; zindex:2;The zindex instructs which is on top of the other. Like this: <img src="some_image" width="100" height="50" style="position:absolute; left:10px; top:200px; zindex:1" /><br /><img src="another_image" width="100" height="50" style="position:absolute; left:10px; top:200px; zindex:2" />Notice the higer the zindex is, the higher the priority. 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