Computing.Net > Forums > Web Development > Content not lining up in frames

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Content not lining up in frames

Reply to Message Icon

Name: Wifler
Date: October 30, 2004 at 07:46:08 Pacific
OS: Win XP
CPU/Ram: P4 2.0 256mb
Comment:

Im creating a web page using frames. Im keeping the logo and navigation static at the top of the page in a top frame with the main content in the frame below which will obviously scroll down. Ive got this problem which Ive never had before and I have a mental block!

Im using tables to put the content in, and when I view the frameset page, the content in the two frames don't line up, even though I used the same table layout for each frame, but obviously just changed the content. So for example I have my top.htm and main.htm, all content in a centered table, and when I view the frameset the stuff in the bottom frame appears about 20 pixels or so to the left instead of in line with the top, if you see what I mean. Whats causing it? Im sure its a simple little thing but I can't think what.



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: October 30, 2004 at 08:17:41 Pacific
Reply:

I see what you mean, can you show us the page?

^o^
are you in Asia? do you watch Animax Asia? Please Vote


0

Response Number 2
Name: Wifler
Date: October 30, 2004 at 08:51:15 Pacific
Reply:

Hi

You can view a basic test here
http://mysite.wanadoo-members.co.uk/wifler/new_frame.htm


0

Response Number 3
Name: Wifler
Date: October 30, 2004 at 09:01:19 Pacific
Reply:

Ok
It seems to be the scrollbar! I changed the main frame to no scrolling and it was ok, but surely that shouldn't be the case, it never has been before as far as I remember.


0

Response Number 4
Name: Laler
Date: October 30, 2004 at 09:13:24 Pacific
Reply:

yes, you saw it yourself :p

I don't know if there's a way to force showing some greyed scrollbar on the topframe... maybe someone will tell you later...

but if I were you, I'll just change the whole layout... I think it's too risky to "connect" those content in different frames...

or you might try using an iframe instead, setting only a single page, the centered top table placed on top, and put a centered iframe below it...

^o^
are you in Asia? do you watch Animax Asia? Please Vote


0

Response Number 5
Name: Wifler
Date: October 30, 2004 at 10:21:28 Pacific
Reply:

Just sorted it.
For some reason in the code the top frame was set to NO scrolling at all and the main frame was set to AUTO scrolling, for scrolling when needed. I set the top frame to AUTO as well and that has solved the problem. Doh!


0

Related Posts

See More



Response Number 6
Name: Laler
Date: October 30, 2004 at 10:46:07 Pacific
Reply:

congratz ^_^

^o^
are you in Asia? do you watch Animax Asia? Please Vote


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Content not lining up in frames

Mirror a site www.computing.net/answers/webdevel/mirror-a-site/667.html

frames not displaying in IE www.computing.net/answers/webdevel/frames-not-displaying-in-ie/636.html

Rate my Website Layout www.computing.net/answers/webdevel/rate-my-website-layout/1364.html