|
|
#1 (permalink) Top |
|
Geek
![]() Join Date: Oct 2005
Gender:
Posts: 51
Status: Offline
|
Ok, I have a design for a web site with a menu positioned on the left and a "main content area" to the right of the menu. I would like the content area to grow vertically only, but be in it's own "frame" (have scroll bars to move down through while the rest of the page remains motionless.) I've tried IFRAMEs and didn't really like them. Someone told me that I could do the same thing with DIVs and CSS.
I got the div looking the way I want but my problem is that the div scrolls horizontally as well as vertically. I'm using the overflow option. ' overflow: auto; ' I can re-type and position the text and content and that fixes the problem but isn't there a way to make your text automatically fit the container it's put in instead of the div changing itself to accomodate the text? Also I have heard other developers criticize the scrolling content idea. Is it foepaw? (don't know how to spell that word) And if so, why? My rational is: I have quite a bit of content and wanted the menu and other links to remain where the viewer could get easy access to them. I've never liked the target links that take you back up to the top of the page. I know of ways to make the menu drop down and follow the viewer as they scroll but think those types of menus to be annoying and a bit tacky. (just my opinion, don't wanna step on anyone's toes )Any help, advice...etc would be most welcome. Last edited by davisphive; 09-07-2007 at 04:55 PM. |
|
|
|
#2 (permalink) Top |
|
Administrator
![]() Join Date: Oct 2001
Age: 24 Male
Posts: 4,432
Times Helpful: 116
My Mood: Bored
Status: Offline
|
I think I know what you mean, though I've not seen any site using the method recently.
You want something like this Dynamic Drive- Scrollable Content II ? I would not recommend it, just keep it simple!
__________________
Zone 365 | F@H Team | Team Stats | Use The Thank You System | My Groups: Manchester United | Apple |
|
|
|
|
#4 (permalink) Top |
|
iMod
![]() ![]() Join Date: May 2005
Age: 21 Male
Posts: 3,844
Times Helpful: 238
My Mood: Happy
Status: Offline
|
You can do this with a DIV, using the CSS property "overflow: ;"
There are different options: Code:
overflow: auto; overflow: hidden; overflow: scroll; overflow: visible; I think that's what you mean, like if the content is larger than the DIV's height you can either make the DIV bigger to accomodate the content, hide the content, scroll the DIV (scroll bar at the side of the DIV) - I think that's what the options do. overflow: visible; I think you'd want the "overflow: scroll;" property.
__________________
|
|
|
|
|
#5 (permalink) Top |
|
Geek
![]() Join Date: Oct 2005
Gender:
Posts: 51
Status: Offline
|
Is there any way to keep it from scolling horizontally without have to manually format my text or images to fit the Div's dimensions?
Something that would just automatically push the text downward instead of adding horizontal scrolling. |
|
|
|
#6 (permalink) Top |
|
Administrator
![]() Join Date: Oct 2001
Age: 24 Male
Posts: 4,432
Times Helpful: 116
My Mood: Bored
Status: Offline
|
maybe you need to use word-wrap css?
__________________
Zone 365 | F@H Team | Team Stats | Use The Thank You System | My Groups: Manchester United | Apple |
|
|
|
|
#9 (permalink) Top |
|
Geek Trainee
![]() Join Date: Jul 2007
Age: 20
Posts: 14
My Mood: Psychadelic
Status: Offline
|
What about creating a table with the width 100% of the frame? Resizing the window will automatically adjust the width of the table to fit the width of the window since it's 100%, not in pixels.
|
|
|
|
|
#13 (permalink) Top |
|
iMod
![]() ![]() Join Date: May 2005
Age: 21 Male
Posts: 3,844
Times Helpful: 238
My Mood: Happy
Status: Offline
|
Yeah, they're not in-keeping with Web Accessibility guidelines either...
Use the <div> tag and CSS to construct the actual layout - tables are for tabular data.
__________________
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Excel Scrolling | duffgun | General Software | 5 | 24-08-2006 11:58 PM |
| (X/K)ubuntu example content | megamaced | Linux and Other OSes | 1 | 22-06-2006 09:56 PM |
| Some new content | Big B | News and Article Comments | 0 | 13-01-2005 12:50 PM |
| What type of content do you want to see? | syngod | Suggestions and Feedback | 2 | 24-02-2003 12:44 AM |