Re: is <div style="display: inline"> identical to <span>?
..oO(Summercool)
>There is often a discussion of
>
> <div style="display: inline">
>
>being able to make a block element into an inline element.
This is _never_ possible. A block-level element remains a block-level
element, regardless of the CSS rules you apply to it. CSS only affects
the rendering, it doesn't change the element type.
>so is it true that
>
> <div style="display: inline">
> [any possible markup here...]
> </div>
>
> is *identical* to
>
> <span>
> [any possible markup here...]
> <span>
>
>and vice versa,
>
>is <span style="display: block"> identical to a <div>?
No. The rendered result might look the same, but the elements are still
completely different and have to follow the rules of the DTD.
Micha
|