473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 3889
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.org> wrote in message
news:m1************@socrates.skate.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
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...
40
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
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...
4
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...
7
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
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...
25
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...
56
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....
1
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:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.