|
Posted by Ben C on 07/11/07 09:15
On 2007-07-11, Neredbojias <neredbojias@gmail.com> wrote:
> Well bust mah britches and call me cheeky, on Wed, 11 Jul 2007 05:30:45
> GMT Jukka K. Korpela scribed:
>
>> A form is a block-level element by default. Thus, it will be rendered
>> with line breaks before and after. You could prevent this with
>>
>> form { display: inline; }
>
> One thing I'm not clear on. If that technique is utilized, can one still
> include a block-level <div> (for instance) within the form?
You can, but it will result in "line-breaks", or more technically
anonymous blocks around the inline things either side of the block-level
div.
Try it, and it will be obvious what I'm talking about.
Now if you made form { display: inline-block; } on the other hand, then
in a browser that supported that, the form could contain a block-level
div but still share a line with its inline siblings.
Navigation:
[Reply to this message]
|