change the layer positon in html....
I have a problem one of my html page...i am using the layer to display some images in a particular position...
My problem is, when the user using higher resolution or lower resolution the layer was moved from my original place....
i want the layer in same position for all the resolution...
Anybody have idea to change the layer position according to the resolution..
-----------------------
suresh
Re: change the layer positon in html....
Still now i am not getting the code for change the layer position.....
But i wrote one of javascript function to handle it manually....
I called this funtion in body onload method...
The coding are as follows....
function resolution()
{
if(screen.width==1280 && screen.height==960)
{
document.getElementById('Layer1').style.top="138px";
document.getElementById('Layer1').style.left="874px";
}
else if(screen.width==1280 && screen.height==720)
{
document.getElementById('Layer1').style.top="138px";
document.getElementById('Layer1').style.left="840px";
}
else if(screen.width==1152 && screen.height==864)
{
document.getElementById('Layer1').style.top="143px";
document.getElementById('Layer1').style.left="730px";
}
else if(screen.width==1280 && screen.height==1024)
{
document.getElementById('Layer1').style.top="137px";
document.getElementById('Layer1').style.left="860px";
}
}
Layer1 is id for the particular "layer". This is not a good idea to solve problem..But i want to solve problem right now..thats why i am using....
Still i eager to get your golden idea for this problem...
--------------------
suresh
Re: change the layer positon in html....
hi dear..use photoshop for layouts and make layers in photoshop with slice tools...Only one way to solve this temporary problem permanently....