HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Screen resolution issue
Post new topic   Reply to topic    HTML Help Forum -> CSS
View previous topic :: View next topic  
Author Message
maverick83



Joined: 14 Apr 2009
Posts: 2

PostPosted: Tue Apr 14, 2009 8:22 am     Screen resolution issue Reply with quote

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

PostPosted: Tue Apr 14, 2009 9:58 am     Use elastic layout Reply with quote

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

PostPosted: Wed Apr 15, 2009 4:10 am     Reply with quote

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

PostPosted: Wed Apr 15, 2009 4:55 pm     Reply with quote

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

PostPosted: Wed Apr 15, 2009 6:30 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial