HTML CSS Reference/HTML Attributes Reference/compact

Материал из Web эксперт
Перейти к: навигация, поиск

"compact" Example

<head><Title>Example For compact</Title></head>
<dl compact="true">
    <dt>Compacted Definition List</dt>
    <dd>Definition 1.</dd>
    <dd>Definition 2.</dd>

compact is applied to

| Applied_To     |<dir> (IE6)                     <dl>                          |
|                |<menu> (IE6)                    <ol>                          |
|                |<ul>                                                          |

"compact" Syntax and Note

This attribute reduces the white space between each item in a list or menu. 
It is a Boolean attribute.
Its values can be true and false.
True value will remove all extra space.
Default value is false.
<element compact="value"> . . . </element>