Why is it that this inline CSS works fine.
<a href="error.php" class="reportBug"
style="display:scroll ;position:fixed; bottom:210px; right:2px;">
<img src="images/Report_Error.png" border="0">
</a>
But it doesn’t work when I put the CSS in <head>.
<head>
<style type="text/css">
#reportBug {
display:scroll;
position:fixed;
bottom:210px
right:2px;
}
</style>
</head>
<body>
<a href="error.php" class="reportBug">
<img src="images/Report_Error.png" border="0">
</a>
</body>
What is the difference between the two, and why doesn’t the second way work?
When assigning an element to a class you use
.notation. IDs use#.Should be