loomanleet loomanleet - 7 months ago 26
CSS Question

Fixed position removes link from an image

Yo! So i'm currently creating a new website using a vertical header i guess you could say for the first time and i've encountered a problem where the link gets removed from the image when I use a fixed position on it.

Thanks in advance!

.header {
width: 200px;
height: 100%;
background-color: #212121;
top: 0;
left: 0;
position: fixed;
-webkit-box-shadow: 2px 0px 1px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 2px 0px 1px 0px rgba(0,0,0,0.5);
box-shadow: 2px 0px 1px 0px rgba(0,0,0,0.5);
.menu {

.menu ul {
list-style-type: none;
margin: 0;
padding: 0;
.menu li {

.menu li a {
display: block;
text-decoration: none;
background-color: #3AC6F4;
padding: 15px 0 15px 10px;
margin-top: 1px;
color: white;
transition: opacity .15s ease-in-out;
-moz-transition: background-color .15s ease-in-out;
-webkit-transition: background-color .15s ease-in-out;
.menu li a:hover {
background-color: white;
color: black;
.container1 {
margin: 0 auto;
width: 700px;

.footer {
position: fixed;
bottom: 30px;
padding: 25px;
height: 150px;
width: 150px;
.footertext {
text-align: center;
padding-top: 5px;

<!DOCTYPE html>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/style.css" rel="stylesheet">
<link href="css/images/favicon.ico" rel="shortcut icon">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Loom | Home</title>


<div class="header">
<div class="menu">
<li><a href="index.html">HOME</a></li>
<li><a href="index.html">PORTFOLIO</a></li>
<li><a href="index.html">CONTACT</a></li>
<div class="footer">
<a href="index.html"><img src="css/images/loombottomlogo.svg" alt="Logo"></a>
<div class="footertext">
@2016 ExLoom.<br/> All Rights Reserved.

<div class="container1">
<div class="titlebackground">
<div class="title">

<div class="titlep">

<div class="footer">




I deleted the additional empty <div class="footer"> (last <div> in your <body> element near the end of your HTML code) and it works.

You have two <div class="footer">'s