My journey into web development started just 2 weeks ago, and I'm currently working on building my own website. One of the challenges I've encountered is getting the hover effect to work on a header button, but so far, I haven't been able to find a solution. Here's a snippet of the code I'm struggling with:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css'>
<script src="http://timthumb.googlecode.com/svn/trunk/timthumb.php"></script>
</head>
<body>
<div class="banner">
</div>
...
CSS:
/* CSS stylesheet */
body {
margin: 0;
padding: 0;
background: #ccc;
overflow-x: hidden;
font-family: 'PT Sans'
}
...
I have experimented with different properties like position:relative and display:block without much success.