A Complete Guide to Web Design

(やまだぃちぅ) #1
Properties 417

CSS

Properties

Web Design in a Nutshell, eMatter Edition

white-space


Values:
normal|pre|nowrap


Example:
P.haiku { white-space: pre }


Applies to:
Block-level elements


Inherited:
Yes
This property defines how white space in the source for the element is
handled. Thenormalvalue treats text normally, with consecutive spaces
collapsing to one. Theprevalue displays multiple characters, like the


tag in HTML, except the element is not displayed in a monospace font.nowrap
prevents the text element from wrapping unless designated by a
tag.


list-style-type


Values:
disc|circle|square|decimal|lower-roman|upper-roman|
lower-alpha|upper-alpha|none


Example:
OL { list-style-type: decimal }(1, 2, 3, 4, etc.)
OL { list-style-type: upper-roman }(A., B., C., D., etc.)


Applies to:
Elements with thedisplay property set tolist-item


Inherited:
Yes
This attribute specifies the appearance of the automatic numbering or
bulleting of lists. Values are the same as for thetypeattribute within a list
item (

  • ). These numbers/bullets will be displayed when no list-item image
    is specified or if the image cannot be found.


    list-style-image


    Values:
    URL|none


    Example:
    UL { list-style-image: url(3dball.gif) }


    Applies to:
    Elements with thedisplay property set tolist-item


    Inherited:
    Yes
    This property specifies a graphic to be used as a list-item marker (bullet).

  • Free download pdf