For some strange reason, when I’ve got an inline image and inline anchor element, and the image has 100% height/40% width and anchor has 100% height/40% width, the ANCHOR GETS PUSHED OUT OF THE DIV…
I have no clue at all why this is happening, it makes zero sense…
Is this a bug…?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Otako Portfolio
</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header id="navbar">
<header>
<h1> Otako Work Showcase </h1>
</header>
<nav id="NavigationBar">
<a class="NavigationBarLink" href="#welcome-section">
WAHlcome!
</a>
<a class="NavigationBarLink" href="#projects">
My Projects
</a>
<a class="NavigationBarLink" href="#Contact">
Let's Talk
</a>
</nav>
</header>
<main>
<section id="welcome-section">
<h1 class="SectionHeader">
WAH!
</h1>
<p class="SectionBottomElement">
Welcome to my collection of projects!
</p>
</section>
<hr>
<section id="projects">
<h1 class="NavigationBar">
My Projects
</h1>
<p class="SectionBottomElement">
Here are some of my hand-picked, top pieces of work I've decided to showcase.
</p>
</section>
<hr>
<section id="Contact">
<h1 class="SectionHeader">
Let's Talk
</h1>
<p>
Are you interested? You can always contact me with a DM on Twitter; I'd be happy to talk with you! I check my DMs twice every day, so please expect a fast response.
</p>
<div id="TwitterLink">
<img id="TwitterIcon" src="https://toppng.com/uploads/preview/twitter-icon-transparent-11549680383mmzgiol88v.png" alt="Twitter Icon">
<a id="profile-link" class="SectionBottomElement" href="renshuu.org" target="_blank">
My Twitter
</a>
</div>
</section>
</main>
</body>
</html>