One time, I tried to lighten the mood by cracking a joke with my friends, but it backfired when I got stuck fixing a misaligned button on my website.
Here is a snippet of my HTML code:
<body>
<?php include 'navbar.php'; ?>
<br><br>
<div class="content">
<h1> Roderick15's Stuff</h1>
<br><br>
<br><br>
<button onclick="window.location.href='deathnote.php'"
class="btn">Death Note</button>
</body>
And here is where I've defined my CSS:
body {
margin: 0 auto;
font-size: 28px;
font-family: Arial, Helvetica, sans-serif;
}
.btn {
color: white;
text-align: center;
font-size: 15px;
opacity: 1;
transition-duration: 0.3s;
background-color: black;
cursor: pointer;
display: block;
float: left;
margin-right: 5px;
line-height: 50px;
}
.btn:hover {
opacity: 0.5;
color : white;
}
h1{
text-align: center;
}
I'm hoping that someone out there can assist me in resolving this issue.