The hyperlink cannot be activated

I am encountering an issue with a web page that has a simple layout. The footer of the page contains a link, but it is unclickable. I attempted to set z-index: 1000000 for the footer element, however, this did not resolve the problem. I am unsure of what might be causing this issue. Can someone please review the code and provide insight into what may be wrong?

Below is the HTML code snippet:

<!DOCTYPE html>
<html itemscope itemtype="https://schema.org/Article">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="xxxxxx.css">
</head>
<body>

<div id="wrapper">
    <div class="container-fluid">
        <div class="row">
            <div id="main" class="translateInit translate-2 col-12"> 

            @yield('content')

            </div>
        </div>
    </div>

    <div id="footerPusher"></div>
</div>    

<div id="footer">
    <strong>Created & designed by <a href="https://tatrytec.eu/blog">Tatrytec.eu</a> 2020</strong> &nbsp;&nbsp
</div>

</body>
</html>

Additionally, here is an excerpt of the associated SCSS code:

#wrapper {
    min-height: 100%;
    /* ensures visibility of the footer as 100% extends outside window */
    margin-bottom: -5em;
}

#main {
    padding-bottom: 10em;
}

Answer №1

To implement a z-index, it's essential to first position the element other than static. Here's an example:

#footer {
    position: relative;
    text-align: center;
    z-index: 1;
}

After thorough testing, I confirmed that using z-index: 1 is sufficient to ensure the link remains clickable. 😉

Answer №2

Upon reviewing the provided link, it was evident that there was a padding-bottom: 10em; applied to the #main div. To rectify this issue, the padding needs to be removed.

Furthermore, applying a margin-top: 10em; to the #footer div will help resolve the problem at hand.

By making these adjustments, the #main div no longer overlaps with the footer, allowing for proper functionality and ensuring it is clickable once again.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

When running `node compile.js`, no combined CSS file is being created

I have finally mastered the art of setting up and executing the "node compile.js" file in the claro theme folder to compile each *.less file into its corresponding *.css file. However, I noticed that the old claro.css file remains unchanged. Is this the in ...

jQuery enables the creation of fresh form fields

Currently, I am working on a form that initially consists of 2 text input fields. The typical use case involves the user entering a number in one field and their name in the other. Following this, the page updates itself without reloading. However, there a ...

Gif stubbornly refusing to fade out even after the .fadeOut command is called

Having trouble making a gif fade out after the page loads? Here's my attempt so far: I want the overlay, which includes a white background and the gif, to gradually become transparent once the rest of the page is fully loaded. Take a look at the fol ...

How can I implement user-specific changes using Flask?

I am a beginner with Flask and I am working on a project where users can sign up, and if the admin clicks a button next to their name, the user's homepage will change. Below is the Flask code snippet: from flask import Flask, redirect, url_for, render ...

Learn the steps to include an HTML checkbox in an AJAX HTML editor

I need help with adding an HTML checkbox to an Ajax HTML editor in ASP.NET. I have attempted to do this but am having trouble checking and unchecking it. Below is the code snippet that I have tried. Any suggestions would be greatly appreciated. webform.as ...

Why are my multiple data-targets not functioning correctly in Bootstrap tabs?

When I attempted to create a navigation bar using Bootstrap 4 that toggles two divs when clicked on a nav-item, I discovered that you can include multiple #contents when using data-target. <a data-target="#tab-content-2, #cmcAGVL"> <nav> & ...

Cordova Geolocation now displaying incorrect latitude and longitude values as NAN

Recently starting out with javascript and Cordova, I decided to develop a basic GPS app in Visual Studio 2015. The goal was simple: get my current position by clicking on the "CURRENT POSITION" button. Testing it in Firefox yielded positive results. Howev ...

Ways to transfer data between Angular controller and jQuery

Looking for some guidance on how to toggle between two HTML divs based on user input validation using an Angular controller and jQuery animations. Each div contains input fields that need to be validated before moving on to the next stage. Here is a simpli ...

React Nested Grid with Material-UI

https://i.stack.imgur.com/toxDA.jpg I am striving to replicate the layout demonstrated in the image below So far, I have the following code snippet: <Grid container justify=“space-between”> <Grid container item> <Grid ite ...

The left side inputs are contingent upon the div

I am faced with a challenge involving two inputs inside a div. Below is the code snippet: <div style="width:100%;height:500px;border-style:solid;border-color:#1d69b4;margin-top:25px;"> <div style="float:left; width:70%;height:100 ...

Activate a change or response when the input value in Javascript is altered

Currently, I am working on a small project using JQuery and facing an issue when trying to remove error classes from HTML elements. To handle the removal of the error classes, I am utilizing $('selector').on('input') event to target th ...

JavaScript Link Replacement Magic!

I am trying to use JavaScript to update directory links. For example, I need to switch to . This is the code I currently have: <!DOCTYPE html> <html> <body> <img src="http://mysite.com/cdn/backup/Pic.jpg" /> <iframe src="http ...

mentioning a JSON key that includes a period

How can I reference a specific field from the JSON data in Angular? { "elements": [ { "LCSSEASON.IDA2A2": "351453", "LCSSEASON.BRANCHIDITERATIONINFO": "335697" }, { "LCSSEASON.IDA2A2": "353995", "LCSSEASON.BRANCHIDITER ...

Retrieve the div element by calling a scriptlet with JavaScript

I am facing an issue with a web page that includes a scriptlet like this: <div id="flash_chart"> <%=content_data['report_text']%> </div> The variable content_data['report_text'] contains a lengthy string ...

Issue with Javascript function when HTML settings are updated using Ajax

I am experiencing an issue and struggling to understand the cause. Initially, I have a list of elements with a click event using JavaScript. The click event functions correctly when the page loads. However, upon clicking the 'more' button, which ...

Reveal and conceal using CSS animations

I am working on adding animation effects to show and hide HTML elements triggered by a button click. The button toggles a "hide" class to display or hide the element. Check out my code snippet: const toggleButton = document.querySelector('button ...

Using Inline Font CSS for FontAwesome 5 Unicode Compatibility

I am currently utilizing a library that does not support the font-weight property. Instead, the font style is defined by the font CSS property as detailed here. After trying to set the font style using the font CSS property with FontAwesome 5, I noticed t ...

Retrieve detailed Paypal donation transaction information in HTML format with the donation button functionality integrated

I'm currently in the process of building a web application for a non-profit organization, which includes a Paypal Donation feature. I am using HTML5, CSS3, and jQuery to develop this application. I have successfully implemented the Donation button fro ...

Can v-model be used with dynamic object keys?

I would like to showcase my data structure as follows: form: { email: '', password: '' } My goal now is to implement a loop to dynamically set the model using the form object. <div class="my-1" v-for="(value,name, index) in ...

The asp:TextBox functionality encounters issues when used within the asp:Placeholder element using C#

I'm attempting to dynamically add TextBoxes controls based on items in my database. Below is the asp:PlaceHolder snippet from my .aspx page: <asp:PlaceHolder ID="PlaceHolderHTML" runat="server"></asp:PlaceHolder> From my C# code, I am ge ...