473,804 Members | 3,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2528
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
2094
by: Sean Berry | last post by:
This is the page in question
2
6564
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 other browsers including Opera, Mozilla, Firefox, Netscape, etc. It even works in IE on Mac. Since IE on windows is probably the most used browser out there, I wanted to get it working for it as well.
5
4209
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 elementary HTML and CSS code, how do I create a simple "framelike" main page without being evil? where definition of "how" is --Example of a skeleton HTML template
3
9906
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 that I can enable vertical or horizontal scrollbars for the textbox and their wrapping but thats it for modifications of the scrollbar.
2
12200
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 to get this table to sit at the bottom of the DIV. Example code follows, or see http://home.exetel.com.au/tas/valign/test01.html
2
1445
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
5329
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 shows this could be done a containing element with "min-height: 100%;" and an absolute positioned element (div) inside, aligned to bottom ("position: absolute; bottom:0px")
0
1500
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 read the actual message in the "bottom" reading pane format is to double click the message and read it in full view. This all happened when I accidentally fiddled with the divider between the messages list and the reading pane (I believe this is...
1
1609
by: firecomp | last post by:
void ClipboardSave(HWND hwnd) { static GLOBALHANDLE hGMemGraph; LPMETAFILEPICT lpMfp; hGMemGraph = GlobalAlloc(GHND,(DWORD)sizeof(METAFILEPICT)); if (!hGMemGraph) { OutOfMemory(); return;
0
9707
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9585
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
10338
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
10323
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
10082
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
9161
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
6856
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
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.