View your Shopping CartFrequently Asked QuestionsEmail Us
Home | About Us | Contact Us
SmartWebby.com provides best web design & web programming services globally
We specialize in Rapid Web Design, ASP.net, ASP and PHP web programmingBest Web Design, Best Web Programming, Global Service Provider - Dependable Professionals to build your website right!

Using Bullets in HTML or Macromedia Dreamweaver

Tool(s) Required:

HTML Editor: Any
Recommended: Adobe Dreamweaver CS3

This article deals with how to use bullets in HTML or Macromedia Dreamweaver. To summarize, bullets can be displayed in the following ways:

  1. Using the <ul> and <ol> tags with or without the type attribute set.
  2. Using CSS styles by specifying a class attribute to the <ul> or <ol> tags. The bullet type can be either the regular HTML types or bullet images.
  3. Using Tables and image bullets, lists can be created within small areas. For example take a look at the related links in the left menu. Notice how image bullets are used for listing out the Fireworks Tips.

1. Using <ul> and <ol> tags with or without the type attribute

Bullet Type HTML Code Example
<ul><li>List Item 1</li></ul>
  • List Item 1
<ul type="square"><li>List Item 1</li></ul>
  • List Item 1
<ul type="circle"><li>List Item 1</li></ul>
  • List Item 1
<ol><li>List Item 1</li></ol>
  1. List Item 1
<ol type="i"><li>List Item 1</li></ol>
  1. List Item 1
<ol type="I"><li>List Item 1</li></ol>
  1. List Item 1
<ol type="a"><li>List Item 1</li></ol>
  1. List Item 1
<ol type="A"><li>List Item 1</li></ol>
  1. List Item 1

2. Using CSS styles by specifying a class attribute to the <ul> or <ol> tag

Create a CSS style called bullet by using the HTML code below or by using Dreamweaver.

HTML Code: <style type="text/css">
<!--
.bullet {list-style-type: disc;}
OR
.bullet {list-style-image: url(/images/icons/bullet.gif);}
-->
</style>

<ul class="bullet"><li>List Item 1</li></ul>
Create Using Dreamweaver:
  1. Open the CSS Styles pallet by clicking on Window > CSS Styles
  2. Click the New CSS Style button and give the name of the style as .bullet. Define it for either only the current document or for a Style Sheet file.
  3. In the CSS Style definition window, go to the List Category and set the type or bullet image and Save the style.
  4. Create your list of items using the default bullet. To apply the style, select the <ul> or <ol> tag in the tag selector located at the bottom left of the Document window. Right Click and Set Class to bullet.

Change the list-style-type property to get the different bullets and the image property to give an image as the bullet.

Bullet Type CSS Style Code Example
.bullet {list-style-type: disc;}
  • List Item 1
.bullet {list-style-type: square;}
  • List Item 1
.bullet {list-style-type: circle;}
  • List Item 1
.bullet {list-style-type: decimal;}
  1. List Item 1
.bullet {list-style-type: lower-roman ;}
  1. List Item 1
.bullet {list-style-type: upper-roman;}
  1. List Item 1
.bullet {list-style-type: lower-alpha;}
  1. List Item 1
.bullet {list-style-type: upper-alpha;}
  1. List Item 1
.bullet {list-style-image: url(/images/icons/arrow.gif);}
  1. List Item 1

3. Using Tables and image bullets, list can be created within small areas

For this create an image bullet and do the following:

  1. Create a Table with each row having the same height. Now place the list items into their respective rows.
  2. Now in front of the first item place the bullet image.
  3. For the selected bullet image give the align property as absolute middle.
  4. Now copy-paste the bullet in front of all the other list items and your table bullet list is ready.

This page is part of the SmartWebby's Free Web Design Guide, a collection of free web design tutorials, articles, tips and guidelines on effective web site design. From web design tips and ideas to HTML, CSS Styles, Fireworks and Dreamweaver you'll find all you need to know about web design right here!

SmartWebby.com provides top-quality web design & web programming services globally. Since January 2001, we have successfully built more than 200 professional web sites for clients from all over the world (USA, UK, Canada, Australia, India, Greece, Denmark, Singapore, etc.). By creating highly professional W3C Standard compliant and load-time optimized websites at extremely affordable prices, we leave our competition far behind in terms of "value for money". We specialize in Rapid Web Design using Adobe Tools, ASP.net/ASP/PHP web programming, W3C Standard compliant CSS & HTML programming, high quality Flash Animation and Interactive Flash Programming. No matter what your requirements are, our team is capable of delivering a website that's over & above your expectations. Check out our popular Web Design Packages today!

Absolutely FREE Web Templates
Check out these quality free web templates and download them without any registration or sign-up!

FREE Flash Actionscript & Animation Guide
Learn Flash the easy way using these easy-to-follow tutorials! Get your basics right or learn advanced flash actionscript!

Quality Dreamweaver Templates
Professional quality dreamweaver templates in over 20 categories, starting at just $9.95! Instant download & easy customization