View Single Post
  #1 (permalink)  
Old Mar 21st, 2007, 19:20
duel duel is offline
New Member
Join Date: Mar 2007
Location: England
Age: 99
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Div Style not working from External CSS [RESOLVED]

Hi guys, I'm having trouble getting div styles to work from an external style sheet.


I've confirmed the page using the div styles does link to the external CSS as I've used styles for other tags without problem. I can also define the div style inline within the page which indicates there's nothing wrong with my coding!

Here's what I have;

This is what is in the external CSS

div.duel
{
font-size: 18pt;
color:#FFFFFF;
}


and this is what is on the page;

<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="../Default.css">
</style>
</head>
<body background="Background.jpg">

<center>
<div class="duel"> Work damn you, WORK! </div>
</center>

</body>
</html>



Is this coding right? Now I've simplified things in the hope that the mistake I'm making is here but I'll happily give any other information you may need to sort this out.

I'm at a complete loss as to why this isn't working. I've only recently gotten back into web design and I thought it must be something really simple but for the life of me can't find it!

Any feedback or advice would be greatly appreciated

SOLUTION!
Instead of 'div.duel' in the CSS, I used 'duel' by itself and it worked

Last edited by karinne; Mar 22nd, 2007 at 11:04.
Reply With Quote