 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
maverick83
Joined: 14 Apr 2009 Posts: 2
|
Posted: Tue Apr 14, 2009 8:22 am Screen resolution issue |
|
|
|
hi
i am using the below code for my iframe but there are following two issue causing problems :-
1.different screen resolution giving different positions even though i am using postion:relative
2.margin-left working differently in IE and FIREFOX ,there is a huge white space in IE
i am posting the code below
| Code: |
#softframe {
height:690px;
margin-left:710px;
width:510px;
margin-top:-490px;
position:relative;
}
|
i cant paste the pics coz there is no attachemnt option here ,i also tried using %ages instead of px but result wasnt much different
looking forward for a favorable response from experts
regards,
mav[/img][/code] |
|
kanenas

Joined: 14 Dec 2004 Posts: 341
|
Posted: Tue Apr 14, 2009 9:58 am Use elastic layout |
|
|
|
Firstly, a static layout with a minimum width of 1200 pixels is a terrible design. Your best bet is to redesign your layout to be more flexible.
You've left out a minimal HTML test case. Since the position of #softframe will depend on document flow, it's impossible to debug your layout with the information provided.
When using positioning, the appropriate properties to place an element are top, left, bottom and right, not margins. I've also the sneaking suspicion you don't understand what relative positioning does. Read up on the CSS visual formatting model. |
|
maverick83
Joined: 14 Apr 2009 Posts: 2
|
Posted: Wed Apr 15, 2009 4:10 am |
|
|
|
i accept all ur points ,i am not much proficient in CSS only on need to know know basis i ll go thr the links u have sent
but if you can tell from ur experience what EXACTLY can cause iframe positioning to differ in different screen resolutions
i have tried em,px,% ages ,nothing works
it works gr8 in firefox but in IE space is too big
pls reply if u have got any idea regarding this thing
regards,
mav |
|
kanenas

Joined: 14 Dec 2004 Posts: 341
|
Posted: Wed Apr 15, 2009 4:55 pm |
|
|
|
| maverick83 wrote: |
| but if you can tell from ur experience what EXACTLY can cause iframe positioning to differ in different screen resolutions |
I can't because
| kanenas wrote: |
| [y]ou've left out a minimal HTML test case. Since the position of #softframe will depend on document flow, it's impossible to debug your layout with the information provided. |
|
|
sticks464

Joined: 31 Dec 2006 Posts: 2627
|
Posted: Wed Apr 15, 2009 6:30 pm |
|
|
|
| Seeing a live site would help as there may be other elements causing your problem. You really haven't provided enough info for anyone to provide help. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|