/*--this is a comment, you can put anything inside the star and
slash--*/
body{
margin: 0px;
padding: 0px;
}
div{
margin: 0px;
padding: 0px;
}
img{
border: 0px;
margin: 0px;
padding: 0px;
}
table{
margin: 0px;
padding: 0px;
}
p{
margin: 15px;
padding: 0px;
}
ul{
margin-top: 10px;
margin-bottom: 10px;
margin-left: 35px;
padding: 0px;
list-style-image: url('image location');
line-height: 20px; (gives spacing between list items)
}
a{
text-decoration: underline/none;
color: hexcode/word;
font-weight: bold/normal;
}
a:hover{
text-decoration: underline/none;
color: hexcode/word;
font-weight: bold/normal;
/*make sure to change at least one thing from your a tag definition*/
}
a:visited{
text-decoration: underline/none;
color: hexcode/word;
font-weight: bold/normal;
/*make sure to change at least one thing from your a tag definition*/
}
Internal stylesheet
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
An internal style sheet may be used if one single page has a unique style.
Internal styles are defined within the <style> element, inside the <head> section of an HTML page:
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
</head>
http://www.w3schools.com/css/css_howto.asp
An external style sheet can
be written in any text editor. The file should not contain any html
tags. The style sheet file must be saved with a .css extension.
Here is how the "myStyle.css" looks:
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}