RSS Forums RSS
Please support our Site Layout and Usability advertiser: Internet Marketing Services
Views: 1250 | Replies: 2
Reply
Join Date: Jun 2007
Location: Killarney Vale, NSW
Posts: 10
Reputation: Scrawn_Dog is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Scrawn_Dog Scrawn_Dog is offline Offline
Newbie Poster

Help My Frames don't align - scrollbar pushes main frame over

  #1  
Jul 18th, 2007
Good morning beautiful people.

I'm having an issue on a page I am designing.
My site uses two frames - a navigation frame (topFrame) and a content frame (mainFrame).

As you can probably tell from the subject title; the content doesn't line up when the mainFrame has a scrollbar - the background image is pushed left (a distance most likely respective to the width of the scrollbar).

The background is linked via external style sheet.

To solve this, some the methods I can imagine being employed are:

1. A script that checks if a scroll bar is present in the mainFrame and then pushes the either the topFrame or mainFrame over the respective distance (this would be ideal).

2. Make sure that the mainFrame has enough content to always scroll and the navFrame has extra white space to accomodate (this method seems a little dodgy).

3. Have scrollbars disabled and people can use the keyboard or mouse wheel to scroll (seems ultra-dodgy).

I know how to do the second and third methods, but it seems like a band-aid solution at best. I'm not very well versed on scripting so I'd like some help with the first method, I'm assuming it would take some Javascript(?). Unless anyone has any other suggestions to fix the problem?

Thankyou for your time.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,640
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 118
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: My Frames don't align - scrollbar pushes main frame over

  #2  
Jul 20th, 2007
If you want content to line up with links, don't use frames. Use tables.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Jun 2007
Location: Killarney Vale, NSW
Posts: 10
Reputation: Scrawn_Dog is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Scrawn_Dog Scrawn_Dog is offline Offline
Newbie Poster

Re: My Frames don't align - scrollbar pushes main frame over

  #3  
Jul 23rd, 2007
Cheers for the tip, I'll create a version using this method and see how it goes.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:13 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC