Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / August 2005



Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gianni Rondinini - 26 Aug 2005 13:52 GMT
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,
Signature

Gianni Rondinini (30, tanti, RA)
VBR - Vero Birro Romagnolo
Hai capito, scelf?

Jim Moe - 26 Aug 2005 22:05 GMT
> 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.

Signature

jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

Gianni Rondinini - 29 Aug 2005 09:26 GMT
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,
Signature

Gianni Rondinini (30, tanti, RA)
VBR - Vero Birro Romagnolo
Hai capito, scelf?

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.