Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Positioning pictures with different resolutions

Status
Not open for further replies.

robi2

Programmer
Jan 19, 2003
62
IL
Hi, i got a picture and floating in front of the picture i have another picture.

I placed the first picture normaly, and to have the second picture float above the first one i placed it in a div and set its position to absolute and then set the top and left properties.

So this works fine on 800X600 resolution, but when i load the page in 1024X768 the second image isn't floating above the first one, its in a different position than the first image...

Any way to solve this?
 
Set the position type to relative instead of absolute. Put the second image in your code straight after the other image and then you can make it relative to the first one. Relative positioning is relative to the previously drawn element, starting from the previous elements bottom right corner. Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top