You are here: Re: Nuts « HTML « IT news, forums, messages
Re: Nuts

Posted by Ben C on 04/17/07 07:00

On 2007-04-16, Jon Slaughter <Jon_Slaughter@Hotmail.com> wrote:
>
> "Ben C" <spamspam@spam.eggs> wrote in message
[...]
>> If you set position: fixed or position: absolute, you get display: block
>> whatever you specify.
>
> ? You mean as a default or that I cannot change it?

You can't change it. If you specify absolute or fixed position for
something with a value of display of inline, run-in, table-row-group,
table-column, table-column-group, table-header-group,
table-footer-group, table-row, table-cell, table-caption or inline-block
what you get is display: block. See CSS 2.1 9.7.

position: relative is completely different though.

> If I use display:inline it works and looks different, atleast in
> FireFox, than display:block.

I'm surprised by that.

[...]
>> Yes the terms are very confusingly named. Relative is the odd one out--
>> the box is flowed normally, and then offset at the last minute from its
>> normal-flow position, leaving a gap where it was.
>
> What I'm having trouble is, is how they inherit the positioning from there
> parent containers.

Simple, they don't. position is never inherited.

> I wasn't sure if it was inheriting or not before but my simple example
> seems to work(See other post). The issue seems to be that I have to
> specify the height because the user agent isn't calculating it for me
> the way I thought it would. I can specify the height but I'd rather
> not if possible.

See also section 10.6 of the spec.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация