Viresh Amin
07-28-2004, 04:12 AM
I've been trying to figure out why my CSS code won't work. Can someone figure it out. For some reason the paragraph inside the body won't work. And also the horizontal rule won't show up white.
Thank You
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Random</title>
<link rel="stylesheet" type="text/css" href="random1.css">
</head>
<body>
<h1>Random Links</h1>
<p>27/Jul/2004 08:25 PM</p>
<hr>
</body>
</html>
||CSS FILE||
body {background-color: black}
h1
{
color: #105b94;
font-size: 13pt;
background-color: yellow;
letter-spacing: 0.5cm;
border-left: medium solid #ff0000
}
p {margin-left: 20px; font-size: 13pt; color:white}
hr {color: white}
Thank You
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Random</title>
<link rel="stylesheet" type="text/css" href="random1.css">
</head>
<body>
<h1>Random Links</h1>
<p>27/Jul/2004 08:25 PM</p>
<hr>
</body>
</html>
||CSS FILE||
body {background-color: black}
h1
{
color: #105b94;
font-size: 13pt;
background-color: yellow;
letter-spacing: 0.5cm;
border-left: medium solid #ff0000
}
p {margin-left: 20px; font-size: 13pt; color:white}
hr {color: white}