Home CSS Lists Add A Border And Background Color To A List
Search MS Office A-Z   |   Search Web Pages/ Design A-Z

Add A Border And Background Color To A List

Here's the original list:

The style rule below creates a class named "colorList" and adds a 2 pixel, solid, maroon border around a blue background with bold white text:

<style type="text/css">
.colorList
 {
 border-style:solid;
 border-width:2px;
 border-color:maroon;
 background-color:yellow;
 color:navy;
 font-weight:bold;
 }
</style>

Apply the class to a div tag:

Here's how that technique looks in Explorer 6.0:



Home CSS Lists Add A Border And Background Color To A List
Search MS Office A-Z   |   Search Web Pages/ Design A-Z