effpeetee
05-21-2007, 08:46 AM
Hello fellow coders.
I am puzzled. The style sheet attached was coded for me by another forum member. As part of my learning of CSS, I have been modifying the various parts to see what happens.
The part below in red does not seem to do anything. If I remove it or leave it in. Am I missing something here.
I would appreciate any help. The page works OK with or without it.
BUT why!
effpeetee
www.exitfegs.co.uk
body {
background-color: #000000;
font-family: Arial, Helvetica, sans-serif;
color: white;
}
#wrap {
width: 97px;
margin: auto;
}
a img {border: none;}
#header {position: relative;}
#header h1 {
color: red;
text-align: center;
}
#content {font-size: 12px;}
#intro {margin-top:20px;
color:yellow;
width: 180px;
float: left;
font-weight: bold;
}
#main {
float: right;
width:740px;
position:relative;
}
#main p {
clear: both;
width: auto; /* reverting the width set in #content p */
}
#main a img {border: 2px solid green;}
#main a:hover img {border-color: orange;}
#imgcaption {font-size: 15px;
text-align: center;
color:yellow;
font-weight: bold
}
.previewlink {}
.previewimage {
width: 680px;
float: left;
}
#links {
clear: left;
}
#links ul {
margin: 0;
padding: 0;
list-style: none;
}
#links ul a {font-size: 12px;
color: yellow;
font-weight: bold;
text-decoration: none;
}
#links ul a:hover {text-decoration: underline;}
#footer {
clear: both;
}
h1,h2 {font-family: Arial;}
h1 {color:red}
h2,h3 {color:cyan}
h6 {color:cyan}
h5,h5 {color:white}
h6,h5,h5,h3,h2,h1,p {
margin: 0;
}
#clockbox0{
position: absolute;
left: 1em;
color:white
}
#clockbox1{
position: absolute;
right: 1em;
color:white
}
#greet{color:red;
text-align:center}
p#pc {margin-top:86px;margin-left:10px;}
#pp{font-size:11px;
color: orange;
font-weight:bold;
text-decoration: none;
border:none
}
#pc{font-size:12px;
color: white;
font-weight:bold;
text-decoration: none;
border:none
}
#foot{font-size:14px;
color: yellow;
font-weight:bold;
text-decoration: none;
border:12px
}
I am puzzled. The style sheet attached was coded for me by another forum member. As part of my learning of CSS, I have been modifying the various parts to see what happens.
The part below in red does not seem to do anything. If I remove it or leave it in. Am I missing something here.
I would appreciate any help. The page works OK with or without it.
BUT why!
effpeetee
www.exitfegs.co.uk
body {
background-color: #000000;
font-family: Arial, Helvetica, sans-serif;
color: white;
}
#wrap {
width: 97px;
margin: auto;
}
a img {border: none;}
#header {position: relative;}
#header h1 {
color: red;
text-align: center;
}
#content {font-size: 12px;}
#intro {margin-top:20px;
color:yellow;
width: 180px;
float: left;
font-weight: bold;
}
#main {
float: right;
width:740px;
position:relative;
}
#main p {
clear: both;
width: auto; /* reverting the width set in #content p */
}
#main a img {border: 2px solid green;}
#main a:hover img {border-color: orange;}
#imgcaption {font-size: 15px;
text-align: center;
color:yellow;
font-weight: bold
}
.previewlink {}
.previewimage {
width: 680px;
float: left;
}
#links {
clear: left;
}
#links ul {
margin: 0;
padding: 0;
list-style: none;
}
#links ul a {font-size: 12px;
color: yellow;
font-weight: bold;
text-decoration: none;
}
#links ul a:hover {text-decoration: underline;}
#footer {
clear: both;
}
h1,h2 {font-family: Arial;}
h1 {color:red}
h2,h3 {color:cyan}
h6 {color:cyan}
h5,h5 {color:white}
h6,h5,h5,h3,h2,h1,p {
margin: 0;
}
#clockbox0{
position: absolute;
left: 1em;
color:white
}
#clockbox1{
position: absolute;
right: 1em;
color:white
}
#greet{color:red;
text-align:center}
p#pc {margin-top:86px;margin-left:10px;}
#pp{font-size:11px;
color: orange;
font-weight:bold;
text-decoration: none;
border:none
}
#pc{font-size:12px;
color: white;
font-weight:bold;
text-decoration: none;
border:none
}
#foot{font-size:14px;
color: yellow;
font-weight:bold;
text-decoration: none;
border:12px
}