Prepare for your Next Interview
This is a discussion on change the layer positon in html.... within the HTML & CSS forums, part of the Web Development category; 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 ...
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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 Last edited by psuresh1982 : 12-18-2006 at 10:02 AM. |
|
|||
|
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....
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Transfer the control from a form to HTML | Lokesh M | JSP | 3 | 06-15-2007 09:12 AM |
| Secure Socket Layer | Martin Lucas | Networking | 3 | 01-10-2007 05:49 PM |
| About Shell Layer Management in UNIX | nancyphilips | Unix/Linux | 2 | 12-14-2006 08:51 AM |
| Dynamic Style in HTML | Robert | HTML & CSS | 1 | 08-17-2006 02:17 AM |
| Help to design business layer for Website | ruppal | HTML & CSS | 0 | 07-12-2006 03:36 AM |