I know this is probably the dumbest question ever, however I am a total beginner when it comes to CSS; how do you hyperlink an image on a webpage using an image which is sou
You control design and styles with CSS, not the behavior of your content.
You're going to have to use something like Logo and then have a CSS block such as:
a#header {
background-image: url(...);
display: block;
width: ..;
height: ...;
}
You cannot nest a div inside and still have 'valid' code. is an inline element that cannot legally contain a block element. The only non-Javascript way to make a link is with the element.
You can nest your If you don't want that, you're going to have to use JavaScript to make your tag inside Document.getElementById("header").onclick = function() {
window.location='...';
}