W3C home > Mailing lists > Public > www-style@w3.org > October 2001

Re: position: fixed [Re: How is it possible to devise such a feeble system?]

From: Vadim Plessky <lucy-ples@mtu-net.ru>
Date: Thu, 25 Oct 2001 20:02:13 +0000
To: Rijk van Geijtenbeek <rijk@iname.com>, www-style@w3.org
Message-Id: <20011025155622.D5E492344F@hueymiccailhuitl.mtu.ru>
Hello, Rijk, hello Andy!

I answer in one mail, just not to make any duplicates.

On Thursday 25 October 2001 14:35, Rijk van Geijtenbeek wrote:
|   Hello Vadim,
[...]
|   >
|   > So, statement that "Fixed positioning is supported by Opera and
|   > Mozilla" is somewhat too strong. 'position: fixed' doesn't work on this
|   > example in Opera and Mozilla.
|   > In contrast, my Konqueror 2.2.1 displays this example pretty well.
|   > See screenshot attached.
|
|   [..]
|
|   There are some strange (for me at least) whitespace characters in your
|   code. After putting the file through HTML Tidy, it showed just like
|   you screenshot in Opera 5.x. Finding the relevant difference between
|   the tidied and the original file was quite hard, as I normally don't
|   have to deal with binary....
|   Some spaces were coded as A0 instead of 20.

I guess it can be some encoding problems (with mail transfer of attachement 
or message itself)
I just copied code from mail by Håkon Wium Lie <howcome@opera.com> to KWrite,
added some lines and sent to you.

Håkon  uses X-Mailer: VM 6.76 under Emacs 19.34.4, I don't have experience 
with Emacs and can't comment. There is also following note in message header:
X-MIME-Autoconverted: from quoted-printable to 8bit by www19.w3.org id 
TAA25430
may be, something happened when conversion was done.

HTML variants you sent to me work great in Opera5/Lin and Mozilla 0.9.1, so 
problem was in some character. Both of them also work in Konqueror. 
This just makes me wondering: why Mozilla and Opera are so sensetive to some 
character(s)? I can imagine that this can cause some problems to users, 
especially with non-Latin languages.
Ok, I know that Opera5 doesn't support Unicode, but Mozilla IMO should 
overcome such problems, in any case. That's just my opinion, from user's and 
developer's point of view.

Finally, I think that it's good that this fragment of code works in expected 
way.
One more question: horizontal formatting.
                                ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~  ~
for position: fixed, horizontal margins are ignored.
So this code
  margin-left: auto;
  margin-right: auto;
 is somewhat useless.
What can be done here to center it horizontally (use width:300px instead of 
width:100% to compare)?

|
|   This:
|       text-align: center;
|   is not the same as ...
|       text-align: center;
|
|   > |   It's not true centering vertically since the height
|   >
|   > DIV's content
|   >
|   > |   isn't taken into the calulation.
|   >
|   > Pardon?
|
|   If there's only a single line in the DIV, it will still start at 40%
|   height. Only when the content exactly fills the 20% height, you can
|   call it truly centered vertically. The lack of a 'shrink-wrapping'
|   display style without resorting to table-properties is one of the
|   problems this thread discusses, IMO.

I see your point. Thank for clarification!
Anyway, this example solves one problem (real task!) which I mentioned 
before - to make presentation in 2min. or 5 min. timeframe, after 
brainstorming in small local group, without network/many computers, etc.
We were doing it on _one_ laptop, sitting 5 people around, in Austrian Alps - 
so, probably now you see why I needed it ;-))  
|
|   Greetings,
|    Rijk                            mailto:rijk@opera.com
|
|   Mot du Jour:
|   Buy Land Now.  It's Not Being Made Any More.
                               ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Come here, there is a lot of unused land available. :-)

Cheers,
-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/
Received on Thursday, 25 October 2001 11:56:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:11 GMT