'개발관련'에 해당되는 글 290건

  1. 2012.10.23 [CSS]CSS Styling - Styling Lists

출처: http://www.w3schools.com/css/css_list.asp



List - Shorthand property

It is also possible to specify all the list properties in one, single property. This is called a shorthand property.


The shorthand property used for lists, is the list-style property:

Example

ul
{
list-style: square url("sqpurple.gif");
}

Try it yourself »

When using the shorthand property, the order of the values are:

  • list-style-type
  • list-style-position (for a description, see the CSS properties table below)
  • list-style-image

It does not matter if one of the values above are missing, as long as the rest are in the specified order.



All CSS List Properties

PropertyDescription
list-styleSets all the properties for a list in one declaration
list-style-imageSpecifies an image as the list-item marker
list-style-positionSpecifies if the list-item markers should appear inside or outside the content flow
list-style-typeSpecifies the type of list-item marker


CSS Lists

All the different list item markers in lists
Set an image as the list-item marker
Set an image as the list-item marker - Crossbrowser solution
All list properties in one declaration


List properties explained

'개발관련 > CSS/CSS3' 카테고리의 다른 글

[CSS]CSS Box Model - CSS Box Model  (0) 2012.10.23
[CSS]CSS Styling - Styling Tables  (0) 2012.10.23
[CSS]CSS Styling - Styling Links  (0) 2012.10.23
[CSS]CSS Styling - Styling Fonts  (0) 2012.10.23
[CSS]CSS Styling - Styling Text  (0) 2012.10.23
Posted by 파노카페
: