That wouldn't work for my purposes. The reason I want to nest links is so I can change the background of all links inside a certain link when I hover over it.
EDIT:This is the my new problem and I believe that it is all that is keeping my idea from working.
Why does this work and the image Star_Gold.png shows up.
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
div a {
padding-right:16px;
background:url(/Images/Buttons/Star_Gold.png) no-repeat 0 0;
}
</style>
</head>
<body>
<div class="1star"><a href="#"></a></div>
</body>
</html>
But this does not?
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
div.1star a {
padding-right:16px;
background:url(/Images/Buttons/Star_Gold.png) no-repeat 0 0;
}
</style>
</head>
<body>
<div class="1star"><a href="#"></a></div>
</body>
</html>
EDIT2:I just realized I am an idiot. I have been racking my brains to try and figure out why this didn't work when the only problem is that i started my class names with numbers.
Last edited by jamest : 02-16-2008 at 02:16 AM.
Reason: new question
|