Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:31 PM
Mason A. Clark
Guest
 
Posts: n/a
Default Frame-like fixed column?

Masters:

On two or three-column layouts, one column often has a list
of links. Scrolling the page hides them. I'm aware there's
supposed to be the ability to fix the column (frame-like).
I have some bits of such code but haven't yet made it
work well.

Question: Why have I never seen an example on the web?
Not that I've seen everything, but I've seen numerous pages
that use CSS and never a fixed column where badly needed.

Is it practical? Any tips on how to do it?

Mason C


  #2  
Old July 20th, 2005, 10:31 PM
Neal
Guest
 
Posts: n/a
Default Re: Frame-like fixed column?

On Fri, 30 Jan 2004 07:24:32 GMT, Mason A. Clark
<masoncNOT@THISix.netcom.comQ> wrote:
[color=blue]
> Masters:
>
> On two or three-column layouts, one column often has a list
> of links. Scrolling the page hides them. I'm aware there's
> supposed to be the ability to fix the column (frame-like).
> I have some bits of such code but haven't yet made it
> work well.
>
> Question: Why have I never seen an example on the web?
> Not that I've seen everything, but I've seen numerous pages
> that use CSS and never a fixed column where badly needed.
>
> Is it practical? Any tips on how to do it?
>
> Mason C
>
>[/color]

I've got some good news and some bad news.

Good news: CSS does allow for position: fixed where when you scroll the
page the positioned element will stay put.

Bad news: IE does not support fixed positioning. So if you use it, be sure
it can work as absolute positioning.

I tried a fixed navigation div on a site. It stayed put in non-IE
browsers. In IE it behaved like absolute. Someone in this or another forum
told me they've seen it not behave like absolute in IE, but I've never
observed this phenomenon. Assuming that's the case, though, you could
always use the old fool-IE-and-fix-for-Opera trick (usually used for the
box model problem) to make it absolute in IE and fixed in other browsers.

#nav {
position: absolute;
voice-family: "\"}\"";
voice-family: inherit;
position: fixed;
}

html>body #nav{
position: fixed;
}
  #3  
Old July 20th, 2005, 10:31 PM
Markus Ernst
Guest
 
Posts: n/a
Default Re: Frame-like fixed column?

"Neal" <neal413@spamrcn.com> schrieb im Newsbeitrag
news:opr2kwdsk4dvhyks@news.rcn.com...[color=blue]
> On Fri, 30 Jan 2004 07:24:32 GMT, Mason A. Clark
> <masoncNOT@THISix.netcom.comQ> wrote:
>[color=green]
> > Masters:
> >
> > On two or three-column layouts, one column often has a list
> > of links. Scrolling the page hides them. I'm aware there's
> > supposed to be the ability to fix the column (frame-like).
> > I have some bits of such code but haven't yet made it
> > work well.
> >
> > Question: Why have I never seen an example on the web?
> > Not that I've seen everything, but I've seen numerous pages
> > that use CSS and never a fixed column where badly needed.
> >
> > Is it practical? Any tips on how to do it?
> >
> > Mason C
> >
> >[/color]
>
> I've got some good news and some bad news.
>
> Good news: CSS does allow for position: fixed where when you scroll the
> page the positioned element will stay put.
>
> Bad news: IE does not support fixed positioning. So if you use it, be sure
> it can work as absolute positioning.
>
> I tried a fixed navigation div on a site. It stayed put in non-IE
> browsers. In IE it behaved like absolute. Someone in this or another forum
> told me they've seen it not behave like absolute in IE, but I've never
> observed this phenomenon. Assuming that's the case, though, you could
> always use the old fool-IE-and-fix-for-Opera trick (usually used for the
> box model problem) to make it absolute in IE and fixed in other browsers.
>
> #nav {
> position: absolute;
> voice-family: "\"}\"";
> voice-family: inherit;
> position: fixed;
> }
>
> html>body #nav{
> position: fixed;
> }[/color]

If you understand German you might be interested in the following article:

http://www.jendryschik.de/wsdev/css/fixed/

If you don't understand German you might still understand the code examples
in the article that provide another IE fix which works well on a page that I
am building at the moment.

--
Markus


  #4  
Old July 20th, 2005, 10:31 PM
Mason A. Clark
Guest
 
Posts: n/a
Default Re: Frame-like fixed column?

On Fri, 30 Jan 2004 10:28:27 +0100, "Markus Ernst" <derernst@NO#SP#AMgmx.ch>
wrote:
[color=blue]
>"Neal" <neal413@spamrcn.com> schrieb im Newsbeitrag
>news:opr2kwdsk4dvhyks@news.rcn.com...[color=green]
>> On Fri, 30 Jan 2004 07:24:32 GMT, Mason A. Clark
>> <masoncNOT@THISix.netcom.comQ> wrote:
>>[color=darkred]
>> > Masters:
>> >
>> > On two or three-column layouts, one column often has a list
>> > of links. Scrolling the page hides them. I'm aware there's
>> > supposed to be the ability to fix the column (frame-like).
>> > I have some bits of such code but haven't yet made it
>> > work well.
>> >
>> > Question: Why have I never seen an example on the web?
>> > Not that I've seen everything, but I've seen numerous pages
>> > that use CSS and never a fixed column where badly needed.
>> >
>> > Is it practical? Any tips on how to do it?
>> >
>> > Mason C
>> >
>> >[/color]
>>
>> I've got some good news and some bad news.
>>
>> Good news: CSS does allow for position: fixed where when you scroll the
>> page the positioned element will stay put.
>>
>> Bad news: IE does not support fixed positioning. So if you use it, be sure
>> it can work as absolute positioning.
>>
>> I tried a fixed navigation div on a site. It stayed put in non-IE
>> browsers. In IE it behaved like absolute. Someone in this or another forum
>> told me they've seen it not behave like absolute in IE, but I've never
>> observed this phenomenon. Assuming that's the case, though, you could
>> always use the old fool-IE-and-fix-for-Opera trick (usually used for the
>> box model problem) to make it absolute in IE and fixed in other browsers.
>>
>> #nav {
>> position: absolute;
>> voice-family: "\"}\"";
>> voice-family: inherit;
>> position: fixed;
>> }
>>
>> html>body #nav{
>> position: fixed;
>> }[/color]
>
>If you understand German you might be interested in the following article:
>
>http://www.jendryschik.de/wsdev/css/fixed/
>
>If you don't understand German you might still understand the code examples
>in the article that provide another IE fix which works well on a page that I
>am building at the moment.[/color]

(I hate bottom posting.)

Thank you, Neal and Marcus. I'm elated by the prospects.

HEY! It works -- worken sie gut -- Ich nicht sprachen
Deutch but copied the code and played with it. It works in Opera 7 and
Netscape 7.1 and with some jitter of the fixed boxes in MSIE 6.

I put the suggested MSIE things in and out with no difference in MSIE 6 but
can't test in earlier version of any of these browsers. Since they're all
free (?) I can urge the viewer to update :-) Or *hope* the boxes stay
visible, but scrolling as most do.

Here's my test page, crap and all:

http://home.earthlink.net/~frontal-lobe/no-scroll.html

no comments re: content or validation please :-)

but if you can fix the MSIE6 jitter !

Mason C


  #5  
Old July 20th, 2005, 10:32 PM
Mason A. Clark
Guest
 
Posts: n/a
Default Re: Frame-like fixed column?

Status report: a real page in process:

http://home.earthlink.net/~frontal-l...no-scroll.html

( in development -- the sidebar links are dummies)

A moment ago the jitter disappeared from MSIE6. I have no
idea where it went but it was after I entered body details and
filled in the text content.

This seems to me an excellent trick for all those many pages
that have a sidebar with links -- or whatever.

Mason C in how many browsers?
  #6  
Old July 20th, 2005, 10:32 PM
Neal
Guest
 
Posts: n/a
Default Re: Frame-like fixed column?

On Sat, 31 Jan 2004 02:15:53 GMT, Mason A. Clark
<masoncNOT@THISix.netcom.comQ> wrote:
[color=blue]
> Status report: a real page in process:
>
> http://home.earthlink.net/~frontal-l...no-scroll.html
>
> ( in development -- the sidebar links are dummies)
>
> A moment ago the jitter disappeared from MSIE6. I have no
> idea where it went but it was after I entered body details and
> filled in the text content.
>
> This seems to me an excellent trick for all those many pages
> that have a sidebar with links -- or whatever.
>
> Mason C in how many browsers?[/color]


Just take care it isn't so tall that smaller viewports might not see the
whole thing. That's the one danger. With fonts full size the height
shouldn't be more than say 450 pixels. Anything taller you run the risk of
part of the sidebar being unusable.
  #7  
Old July 20th, 2005, 10:32 PM
kchayka
Guest
 
Posts: n/a
Default Re: Frame-like fixed column?

Neal wrote:[color=blue]
> On Sat, 31 Jan 2004 02:15:53 GMT, Mason A. Clark
> <masoncNOT@THISix.netcom.comQ> wrote:
>[color=green]
>> http://home.earthlink.net/~frontal-l...no-scroll.html[/color]
>
> Just take care it isn't so tall that smaller viewports might not see the
> whole thing. That's the one danger.[/color]

There is a second issue in this case, too - width. On the test page at
my preferred (largish) text size, the sidebar links overflow into the
content area. IE's broken overflow behavior expands the width of the
sidebar column so the first few characters of each content line are
obliterated by the black background color of the sidebar. In mozilla,
the text overflows the black background so it looks broken.

Tis the problem of setting the width of a text element in px units. I
suggest using em units instead.

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles