473,408 Members | 2,444 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,408 software developers and data experts.

any way to set the "bottom" of a scrolling div?

i'm talking about this page:
http://www.elleen.net/yanny/prova.html
colours are awful, but they're there just to realize where divs begin
and end.
in firefox it works pretty good --well, at least it's almost what i'm
expecting it to be--, but it's not perfect yet.
with internet explorer it's completely messed up --and i don't
understand why--, but i'm not going to talk about this at this moment.

as you can see if you have a look at the source, i have some fixed
div's and an absolute div, which is the one that scrolls and in which
i should put my --long-- content.
i don't understand how --if there's a way to do it-- i can have my
"main" div *not* behind the footer *and at the same time* it being
able to scroll it's content.
one of the many tries i've done was "fixed"-ing the main div and
putting a scrolling div inside it, but it didn't work.
i had more luck setting main div as fixed and then activating the
scroll attribute, but i got also the horizontal scroll bar, which i
wouldn't want, and it didn't receive mouse scroll wheel events, which
quickly became disappointing.

i understand there are a million different ways to show content on the
net and that i could use a different layout, but i'm working on some
pages for internal use and this is the best layout for us, even if id
doesn't work in ie --is there any easy/hard way to let it work with
ie?-- since we all have firefox on our pc's at my company.
i have plenty of pages which uses frames for "fixed" menus and
toolbars and i'm trying to get rid of them without renouncing at the
fixed items, which are absolutely necessary for the job.

thank you in advance.

regards,
--
Gianni Rondinini (30, tanti, RA)
VBR - Vero Birro Romagnolo
Hai capito, scelf?
Aug 26 '05 #1
3 2501
Gianni Rondinini wrote:
in firefox it works pretty good --well, at least it's almost what i'm
expecting it to be--, but it's not perfect yet.
with internet explorer it's completely messed up --and i don't
understand why--, but i'm not going to talk about this at this moment.

IE6 does not do position:fixed.
To get the main div (mainok) to have a scroll bar, set a bottom
coordinate that is fixed rather than auto, say, 55px. Then set
overflow:auto. To eliminate the main window scroll bar you must delete the
body's height attribute. And, of course, it does not work in IE.

It is generally a bad idea to duplicate one type of functionality with
another that is poorly suited to it. If frames work well in your
application, use them. Otherwise, re-design the interface to use the
strengths of other elements.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Aug 26 '05 #2
On Fri, 26 Aug 2005 14:05:34 -0700, Jim Moe
<jm***************@sohnen-moe.com> wrote:

first of all, thanks for your suggestions. later this morning i'll try
them.
It is generally a bad idea to duplicate one type of functionality with
another that is poorly suited to it. If frames work well in your
application, use them. Otherwise, re-design the interface to use the
strengths of other elements.


actually, the reason i'm trying to get rid of frames is that a website
using them isn't indexed by search engines. as soon as i'm able to get
a decent layout/setup without them, i'd like to re-design my company's
website.

scrolling the whole page and "loosing" the menus/navbar on the top is
annoying, imho, and i was trying to "fix" them in a position without
using frames. i mean: a "technical" website, designed mainly for
people interested in that product and that need to use it as an online
catalog and/or info/support source, is similar to an application you
would install on your pc and we all have been using applications with
"fixed" menus and toolbars for almost 20 years; then, having fixed
items in a webpage becomes very user-friendly, both imho and in my
users' first impressions.

i think i'll have to wait another couple of years for fixed div's to
be implemented correctly in i.e., too, and go on using frames for
another while :\

thank you again.

regards,
--
Gianni Rondinini (30, tanti, RA)
VBR - Vero Birro Romagnolo
Hai capito, scelf?
Aug 29 '05 #3

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

Similar topics

0
by: Sean Berry | last post by:
This is the page in question
2
by: Sean Berry | last post by:
Here is the page in question http://www.aquaticwhirlpools.com/v2/ The cell to the right, with "sitemap" and the dropdown menu will not align to the bottom in IE in windows. It works in all...
5
by: AES/newspost | last post by:
I've just re-scanned most of the 60+ posts in the "Frames are Evil" thread, and my question, as the admittedly and permanently amateur creator and maintainer of a simple site, is: Using only...
3
by: buht | last post by:
Hello Everyone, Fairly new to c# here and have a question regarding scrollbars, particularly a vertical scrollbar. It looks like my options are restricted for the textbox scrollbars being...
2
by: Tasman | last post by:
Is there an equivalent of valign="bottom" for a table within a DIV using CSS? I've found I can center a table of buttons in a DIV with {margin-left:auto; margin-right:auto}. But I am unsure how...
2
by: Stephen Plotnick | last post by:
I'm getting a bottom line with Null values andit causes a problem; how do I get rid of it?
1
by: john | last post by:
Hi to All, I am new to html authoring, so sorry if my terminology is not correct or exact. I would like to position a footer div to the bottom of the browser window. As I research in the web...
0
by: =?Utf-8?B?YmFtbm9sYQ==?= | last post by:
When using Windows Live Hotmail and the "bottom" reading pane option chosen, the messages list shows up but no message, not even when I (single) click on the message. The only way to open and...
1
by: firecomp | last post by:
void ClipboardSave(HWND hwnd) { static GLOBALHANDLE hGMemGraph; LPMETAFILEPICT lpMfp; hGMemGraph = GlobalAlloc(GHND,(DWORD)sizeof(METAFILEPICT)); if (!hGMemGraph) { ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
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...

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.