|
| |
|
|
Nicole
Posts: 2831 Joined: 9/15/2004 From: Nambucca / Kempsey, Australia Status: offline
|
CSS List Problem - 2/13/2005 5:59:59
I'm creating a site using CSS for styles not layout, and am having a problem with two separate lists on the site. I'm using includes for the header, footer and left side, and as far as i can see all of those include pages are fine, but when i view the finished product in a browser, the list in the bottom left box is black and should be white. Can anyone see where i'm going wrong? The URL is here And the include page is here And my CSS code is here: body.banner {
color: #284262;
}
body.footer {
background-color: #284262;
}
h2 {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:bold;
font-style:normal;
font-size: 26px;
color: #000000;
margin: 0;
}
h3 {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:bold;
font-style:normal;
font-size: 22px;
color: #333333;
margin: 0;
}
h4 {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:bold;
font-style:normal;
font-size: 18px;
color: #333333;
margin: 0;
}
h5 {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:bold;
font-style:normal;
font-size: 16px;
color: #333333;
margin-top: 0;
margin-bottom: 5px;
}
hr {
height: 1px;
width: 100%;
color: #000000;
margin-bottom: 5px;
}
p {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:normal;
font-style:normal;
font-size: 12px;
color: #333333;
margin-top: 0;
}
li {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:normal;
font-style:normal;
font-size: 12px;
color: #333333;
list-style-type: square;
}
li.leftbottom {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:normal;
font-style:normal;
font-size: 12px;
color: #ffffff;
list-style-type: square;
}
a:link.banner {
color: #cccccc;
text-decoration: none;
font-size: 12px;
font-family: arial, verdana, helvetica, sans-serif;
font-weight: bold;
}
a:visited.banner {
color: #cccccc;
text-decoration: none;
font-size: 12px;
font-family: arial, verdana, helvetica, sans-serif;
font-weight: bold;
}
a:hover.banner {
color: #ffffff;
text-decoration: none;
font-size: 12px;
font-family: arial, verdana, helvetica, sans-serif;
font-weight: bold;
}
a:link.left {
color: #cccccc;
text-decoration: none;
font-size: 11px;
font-family: arial, verdana, helvetica, sans-serif;
}
a:visited.left {
color: #cccccc;
text-decoration: none;
font-size: 11px;
font-family: arial, verdana, helvetica, sans-serif;
}
a:hover.left {
color: #ffffff;
text-decoration: none;
font-size: 11px;
font-family: arial, verdana, helvetica, sans-serif;
}
p.footer {
font-family: verdana, arial, helvetica, sans-serif;
font-weight:normal;
font-style:normal;
font-size: 10.5px;
color: #cccccc;
margin-top: 0;
margin-bottom: 0;
}
a:link.footer {
color: #cccccc;
text-decoration: none;
font-size: 10.5px;
font-family: verdana, arial, helvetica, sans-serif;
}
a:visited.footer {
color: #cccccc;
text-decoration: none;
font-size: 10.5px;
font-family: verdana, arial, helvetica, sans-serif;
}
a:hover.footer {
color: #ffffff;
text-decoration: none;
font-size: 10.5px;
font-family: verdana, arial, helvetica, sans-serif;
}
p.left {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:normal;
font-style:normal;
font-size: 12px;
color: #cccccc;
margin-top: 0;
}
h4.left {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:bold;
font-style:normal;
font-size: 18px;
color: #ffffff;
margin: 0;
}
p.leftbottom {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:normal;
font-style:normal;
font-size: 12px;
color: #ffffff;
margin-top: 0;
}
h4.leftbottom {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:bold;
font-style:normal;
font-size: 18px;
color: #ffffff;
margin: 0;
}
p.banner {
margin-top: 0;
margin-bottom: 0;
color: #ffffff;
}
a:link {
color: #666666;
text-decoration: underline;
font-size: 12px;
font-family: arial, verdana, helvetica, sans-serif;
}
a:visited {
color: #666666;
text-decoration: underline;
font-size: 12px;
font-family: arial, verdana, helvetica, sans-serif;
}
a:hover {
color: #333333;
text-decoration: underline;
font-size: 12px;
font-family: arial, verdana, helvetica, sans-serif;
text-decoration: underline;
}
p.quote {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:normal;
font-style:italic;
font-size: 12px;
color: #333333;
margin-top: 0;
margin-bottom: 15px;
}
p.author {
font-family: arial, verdana, helvetica, sans-serif;
font-weight:normal;
font-style:normal;
font-size: 12px;
color: #006699;
margin-top: 0;
margin-bottom: 15px;
align: right;
} Thanks Nicole
_____________________________
|
|
|
|
caz
Posts: 3520 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: CSS List Problem - 2/13/2005 21:30:08
Before you do anything with the retrieved source code, have a look in Firefox. Could be your DTD affecting things? You have:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>The Gender Centre Inc.</title>
<style type="text/css">
</style>
<link type="text/css" rel="stylesheet" href="gc.css" />
</head> HTML Tidy in Firefox gives this tidied version:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The Gender Centre Inc.</title>
<link type="text/css" rel="stylesheet" href="gc.css" />
</head> I don't usually add a separate stylesheet for includes, the css is all in the main sheet. But you may work differently, but I would guess if the DTD correction doesn't solve it, then there is a conflict between the two stylesheets. I may have missed it but I didn't see any declaration for links, in lists, in leftmenu - but it is very late for me. Cheers, Carol
_____________________________
Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard. Cheshire cat. www.doracat.co.uk I remember when it took less than 4hrs to fly across the Atlantic.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|