7.0
Table Of Contents
a:hover, a:visited, a:link{
color: black;
outline-style: none;
}
With the class selector you can define different styles for the same type of element. The class selector is
defined using a point.
.totalprice {
font-weight: bold;
}
You can also define styles for HTML elements using the id selector. The id selector is defined as a # followed
by the id.
#tableOverview td {
padding: 2px;
border-width: 0 0 1px 0;
border-color: black;
border-style: solid;
}
You can insert comments in CSS to explain your settings. Like HTML comments, CSS comments will be
ignored by the browser. A CSS comment begins with "/*", and ends with "*/".
/* Submenu and Search items start here */
#search, #submenu, #submenu1, #submenu2, #preview, #summary {
width: 100%;
}
/*
multi-line
comment here
*/
Styling - Key Concepts
Objectif Lune Inc. © 2010 17