| Author |
absolute positioning inline elements
|
|
|
| Hi,
Does an inline element become block element once it is positioned
absolutely.
I couldn't find this explicity mentioned in the spec. (css2)
| |
| Gérard Talbot 2005-10-23, 3:18 am |
|
> Does an inline element become block element once it is positioned
> absolutely.
No.
Gérard
--
remove blah to email me
| |
| Spartanicus 2005-10-24, 6:35 pm |
| "yb" <bajwa_yasir@yahoo.ca> wrote:
>Does an inline element become block element once it is positioned
>absolutely.
The concept of inline and block doesn't exist for absolutely positioned
elements.
What may have confused you is that an absolutely positioned element with
width:auto and height:auto shrink wraps around it's content.
--
Spartanicus
| |
| 'sNiek 2005-10-24, 6:35 pm |
| Spartanicus schreef:
> "yb" <bajwa_yasir@yahoo.ca> wrote:
>
>
>
>
> The concept of inline and block doesn't exist for absolutely positioned
> elements.
>
> What may have confused you is that an absolutely positioned element with
> width:auto and height:auto shrink wraps around it's content.
>
Spartanicus, can you post an URL where I can find more info on this subject?
Looks like this might be the source of a problem I'm having with a stylesheet made by a collegue, we just can'
t find the 'error' though.
--
Niek
| |
| Spartanicus 2005-10-24, 6:35 pm |
| 'sNiek <niekemmen@netscape.net> wrote:
>
>Spartanicus, can you post an URL where I can find more info on this subject?
It's all in the spec http://www.w3.org/TR/CSS21/
--
Spartanicus
| |
| 'sNiek 2005-10-24, 6:35 pm |
| Spartanicus schreef:
>
>
> It's all in the spec http://www.w3.org/TR/CSS21/
Okeh,
That's like pointing to the Milky Way when someone asks where he/she can find Amsterdam...
--
Niek
| |
| Spartanicus 2005-10-24, 6:35 pm |
| 'sNiek <niekemmen@netscape.net> wrote:
>
>Okeh,
>
>That's like pointing to the Milky Way when someone asks where he/she can find Amsterdam...
The document at the url I provided contains a table of contents. I
didn't think you would need help with finding the Positioning section in
that list.
--
Spartanicus
| |
| 'sNiek 2005-10-25, 3:27 am |
| Spartanicus schreef:
> 'sNiek <niekemmen@netscape.net> wrote:
>
>
>
>
> The document at the url I provided contains a table of contents. I
> didn't think you would need help with finding the Positioning section in
> that list.
>
You're right, it is there. Over the years I seem to have grown an aversion towards the W3C-website, but I can
see that it has become a little more readable nowadays.
--
Niek
| |
|
| In the spec, from section 9.7, it appears to say that the computed
value of "display" for an inline position element is "block".
i.e. "...if 'position' has the value 'absolute' ... display is set
according to the table below."
The table has listed "inline", among others, mapped to "block"
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |