css Load More



Breaking News

About



Wednesday, 10 July 2013

CSS: CSS List - Learn CSS for Free and Fun ......

CSS List

With the help of CSS list properties; you can set an image as the list-item marker and place the list-item marker.

With CSS you can prepare your list item
You can add properties like
 image
 style

Tag:ol {list-style-type: decimal;}

The CSS list property allocates you to set an image as the list-item marker and place the list-item marker. You can easily add properties like image and style.

Example:

<html>
<head>
<style type="text/css">
ul.disc {list-style-type: disc;}
ul.circle {list-style-type: circle;}
ul.square {list-style-type: square;}
ul.none {list-style-type: none;}
</style>
</head>
<body>
<ul class="disc">
     <li>Sun</li>
     <li>Moon</li>
     <li>Stars</li>
</ul>
<ul class="circle">
     <li>Sun</li>
     <li>Moon</li>
     <li>Stars</li>
</ul>
 <ul class="square">
       <li>Sun</li>
       <li>Moon</li>
       <li>Stars</li>
</ul>
<ul class="none">
      <li>Sun</li>
      <li>Moon</li>
      <li>Stars</li>
</ul>
</body>
</html>



Share This
Blogger
Facebook
Disqus

comments powered by Disqus

No comments:

Post a Comment

Subscribe
Labels
Popular Posts

Subscribe Via Email

About Us

Advertisment

Like Us

© trysite All rights reserved | Designed By Seo Blogger Templates