473,805 Members | 1,981 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

like frames, only better

I've never used frames due to the many reasons we all know that made
them evil, but that doesn't mean there weren't some things about them
that I liked.

I'm interested in creating a CSS based page with fixed top and bottom
sections (right, like frames) and a middle that scrolls. Absolutely
(position: fixed) positioned top and bottom handles the header and
footer sections, but I'm having some trouble with the middle.

My initial solution with fixed header and footer and "static" middle
(http://www.crafter.org/beading/fvb/) has extra margin-top and
margin-bottom space so that the entire content can display, but the
page size is obviously the entire viewport, so when the user pages up
and down, large chunks of content are lost behind the fixed parts
unless they scroll line by line.

My second attempt uses a suggestion I found on the web archive of
css-discuss, which is to set the content in a fixed position as well
and overflow: auto to bring up a scrollbar if needed
(http://www.crafter.org/beading/fvb/test.html). I don't much like the
appearance of the short scrollbar (looks too much like real frames! 8)
and (at least in Mozilla 1.2.1 on Linux) scrolling via the keyboard
(space bar, page up, page down, cursor keys) no longer work, you have
to use the mouse. This doesn't seem to be a viable solution to me.

My questions are:
1) is there a way to make the middle page/scroll properly with
standard keyboard commands?
2) can the content section in the middle be made to flow into the
available space without it being precisely defined?

(or said another way:) is there a way to show the entire content
without specifically setting the margin-top and margin-bottom (or
top and bottom positions) of the middle space so that if the title
and menu length vary from page to page, a precise margin-top need
not be redefined for the space needed so that a single style sheet
can be used for the entire site?

Thanks in advance for any assistance.
--
Carol Wang http://www.elegant.ca/ Elegant Solutions Consulting
http://www.chineseknotting.org/ The Chinese Knotting Home Page
http://www.skate.org/ Information for the Figure Skating Fan
Jul 20 '05 #1
1 3906
I hate frames and always have, and yet they do some things that I don't know
how to do any other way. Maybe you can help.

I edit a magazine at www.mississippireview.com that i just change by putting
an inline frame in a table with an everpresent top and bottom. it's not
about being lazy (I use Frontpage and I was using "shared borders," but
before that I had nav bars on every page. It's pretty easy with Find &
Replace in Frontpage.

Anyway, I wanted to stabilize the page and drop the text (there are about
500 stories, poems, essays, etc online in MR) into this changing hole in the
middle, as if it were a "page."

So far it doesn't look awful (though I didn't yet check other browsers
besides IE), but I would like to replace the scroll bar with some other page
changing mechanism, like a simple up/down arrow set at the bottom of the
frame. This could be done with Flash, I gather, but as I said I have 500
pages already online, and anything I do has to account for that. Flash is
not the answer for such a simple plan.

Anyway, please take a look and see what you think? I'd appreciate any
advice.

fbx
"Carol Wang" <wa***@skate.or g> wrote in message
news:m1******** ****@socrates.s kate.org...
I've never used frames due to the many reasons we all know that made
them evil, but that doesn't mean there weren't some things about them
that I liked.

I'm interested in creating a CSS based page with fixed top and bottom
sections (right, like frames) and a middle that scrolls. Absolutely
(position: fixed) positioned top and bottom handles the header and
footer sections, but I'm having some trouble with the middle.

My initial solution with fixed header and footer and "static" middle
(http://www.crafter.org/beading/fvb/) has extra margin-top and
margin-bottom space so that the entire content can display, but the
page size is obviously the entire viewport, so when the user pages up
and down, large chunks of content are lost behind the fixed parts
unless they scroll line by line.

My second attempt uses a suggestion I found on the web archive of
css-discuss, which is to set the content in a fixed position as well
and overflow: auto to bring up a scrollbar if needed
(http://www.crafter.org/beading/fvb/test.html). I don't much like the
appearance of the short scrollbar (looks too much like real frames! 8)
and (at least in Mozilla 1.2.1 on Linux) scrolling via the keyboard
(space bar, page up, page down, cursor keys) no longer work, you have
to use the mouse. This doesn't seem to be a viable solution to me.

My questions are:
1) is there a way to make the middle page/scroll properly with
standard keyboard commands?
2) can the content section in the middle be made to flow into the
available space without it being precisely defined?

(or said another way:) is there a way to show the entire content
without specifically setting the margin-top and margin-bottom (or
top and bottom positions) of the middle space so that if the title
and menu length vary from page to page, a precise margin-top need
not be redefined for the space needed so that a single style sheet
can be used for the entire site?

Thanks in advance for any assistance.
--
Carol Wang http://www.elegant.ca/ Elegant Solutions Consulting
http://www.chineseknotting.org/ The Chinese Knotting Home Page
http://www.skate.org/ Information for the Figure Skating Fan

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1886
by: les | last post by:
Hello, I just wonder what are the implications to use frames to build portal. I've seen some sites that are quite fast with frames but I just wonder if there are hidden "costs". I've tried to use in the past and I run into a lot of problems when I worked with environment where there were frame and no frames pages. Please let me know if frames are OK to use for serious portal.
40
2952
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
34
4141
by: s c o t t | last post by:
I know Jakob Neilsen and a bunch of other usability advocates and critics usually frown on usage frames. However, most people probably seem to have at least version 5 of IE or newer and I am toying with the idea of just using a small topframe in my site design. Do any of you have strong opinions either for or against frames? I personally don't mind sites with them if the borders are hidden and they are well-designed... Thanks,
4
17648
by: David Pendrey | last post by:
Hello all, I am using the WebBrowser control to browse a webpage containing frames and am having difficulties accessing the 'frames' property of a document object. Bellow is my code and the error recieved: webAccess.Navigate(URL); // Wait until document is loaded. This part DOES work IHTMLDocument2 mDoc = (IHTMLDocument2)(webAccess.Document); IHTMLFramesCollection2 mFrames = (IHTMLFramesCollection2)(mDoc.frames);
7
2995
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
20
3376
by: M.Siler | last post by:
Let me first by saying I am NOT a .net programmer, but am very skilled with ASP, JavaScript, HTML, DHTML, Flash development. I've been reading through posts here about Frames vs. Master Pages and there seems to be the thought of why use Frames when you can use a Master Page? How does a Master Page only update a section without re-displaying the entire page. We have a site that has some small swf banners for lack of a better term that we...
25
2468
by: Lars Eighner | last post by:
Remember the "Get a better browser!" messages that you used to run into when people thought frames were cool? Well, there is a new version of it. It's called 406 - Not Acceptable! -- Lars Eighner usenet@larseighner.com http://www.larseighner.com/ War On Terrorism: Joe McCarthy Brigade "The decadent left in its enclaves on the coasts is not dead -- and may well mount a fifth column." Andrew Sullivan, _The New...
56
3890
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content. Now i want to Disable ad Enable the menu items which are placed in the left frame for navigation purpose. Can any of you input me with any idea as how to proceed? If you need any other information then please let me know.
1
1121
by: my cats, Gag and yak | last post by:
Regarding my previous post and a reply: ++++ Don't use frames - they're not needed in ASP.NET. Or, if you really can't get your head round that and absolutely must use framesets: http://support.microsoft.com/kb/323752 ++++
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10609
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10360
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10366
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10105
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9185
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.