You are here: Re: Menu list broken by form button « HTML « IT news, forums, messages
Re: Menu list broken by form button

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]


Удаленная работа для программистов  •  Как заработать на 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

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