Web Design and Development Forums

fixing menu to screen with limits

This is a discussion on "fixing menu to screen with limits" within the JavaScript Forum section. This forum, and the thread "fixing menu to screen with limits are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > JavaScript Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 22nd, 2008, 16:13   #1 (permalink)
Junior Member
 
Join Date: Mar 2007
Location: indiana
Age: 25
Posts: 38
Send a message via AIM to kidreapertronV
fixing menu to screen with limits

Hello everyone!

I'm not very familiar with javascript, so I'm not even sure that this is possible, but I'll throw it out there anyway.

I've designed a webpage that has a very large amount of content, and I would like a menu to stay fixed to the left of the content so that the user doesn't have to scroll up to navigate the site. I've found many scripts that accomplish this, but I'm wondering if it is possible to constrain its movements within a certain div, so that it never does outside of it.

The test site is here.

In the light gold box on the left, I would like for a fixed menu to stay below the image, and above the footer. With standard fixed positioning, this can't be accomplished.

Any ideas? Is this even possible?

Thanks for any help!

Last edited by kidreapertronV; Apr 22nd, 2008 at 16:22.
kidreapertronV is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 22nd, 2008, 19:37   #2 (permalink)
Up'n'Coming Member
 
Join Date: Mar 2008
Location: Chester, UK
Age: 17
Posts: 90
Re: fixing menu to screen with limits

Quote:
With standard fixed positioning, this can't be accomplished.
This is possible with just css (i think), no need for javascript...


Code: Select all
    #parent {
      width: 600px;
      margin: 0 auto;
      padding: 1em;
      border: 1px #555 solid;
      overflow: auto;
    }
    #fixed {
      position: fixed;
      background: #f60;
      color: #fff;
      padding: .25em;
      overflow: hidden;
    }
And then the divs

Code: Select all
    <div id="parent">
      <div id="fixed">Insert fixed content here</div>
      Insert main content here
    </div>
That should work, i've not tested it though also would need a bit of modifying.... i should imagine...

But this is just a pointer in the right direction....

See here

Last edited by Bocaj; Apr 22nd, 2008 at 19:41.
Bocaj is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 23rd, 2008, 08:47   #3 (permalink)
Moderator
 
spinal007's Avatar
 
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,609
Blog Entries: 1
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: fixing menu to screen with limits

CSS can keep it fixed on the screen, but not within the gold box.
You will need javascript for that...
__________________
Diego - SEO Consultant London (My Blog | Fight Me)
jQuery: Star Rating - Multiple File Upload - FCKEditor/Codepress
Before we work on artificial intelligence why don't we do something about natural stupidity?
spinal007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Creating character and line limits for a form? Inkers JavaScript Forum 8 Jan 11th, 2008 02:10
[SOLVED] Are there limits on the amount of data that can be posted via an ASP Form? Phil ASP Forum 5 Oct 26th, 2007 08:43
Net firms quizzed on speed limits welshstew Webforumz Cafe 43 Oct 15th, 2007 21:20
Fixing this bit of code brockomundo HTML Forum 6 Aug 8th, 2007 18:50
IE bug - need help fixing it! hostmake HTML Forum 11 Sep 18th, 2006 03:55



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 19:21.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59