Hyperlinks are malfunctioning and the text cannot be highlighted

Here is my XML code:

<!DOCTYPE HTML SYSTEM>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css"></link>
</head>
<body>
    <div class="header">
        <img id="circle" src="circle.png" alt="circle"/>
        <div class="menu">
        <ul class="menu">
                <a href="#">
                <li id="menu" style="margin-left: 39%;">Home</li>
                </a>
                <a href="#">
                <li id="menu" style="margin-left: 46%;">About</li>
                </a>
                <a href="#">
                <li id="menu" style="margin-left: 53%;">Contact</li>
                </a>
        </ul>
        </div>
        <a href="http://www.google.com"><img id="src" style="margin-right: 6%" src="src.png" /></a>
        <img id="ham" src="ham.png" style="margin-right: 2%" alt="ham"/>
        <img id="smpline" src="smpline.png" style="margin-left: 5%;" alt="smpline"/>
        <div class="welcome">
            <p id="big">Web Design</p>
            <p id="sml">
                Fusce dapibus, tellus ac cursus commodo, tortor mauris <br />
                condimentum , ut fermentum massa justo sit amet <br />
                erat a ante venenatis dapibus posuere velit <br />
            </p>
        </div>
    </div>

        <img id="lowerfoto" src="lower.png" alt="lower"/>
        <div class="head">
            <img id="fteweit" src="fterwit.png" alt="white"/>
            <ul class="head">
                <li id="head" style="padding-left: 10%;">FOLLOW US</li>
                <li id="head" style="padding-left: 30%;">GET TO KNOW US</li>
                <li id="head" style="padding-left: 50%;">LOCATIONS</li>
                <li id="head" style="padding-left: 70%;">OUR MISSION</li>
            </ul>
            <ul class="under">
                <li id="under" style="padding-left: 10%;">
                    <a href="http://twitter.com">Twitter</a> <br />
                    <a href="http://facebook.com">Faceboook</a> <br />
                    <a href="http://linkedin.com">Linkedin</a> <br />
                    <a href="http://pinterest.com">Pinterest</a> <br />
                    <a href="http://youtube.com">YouTube</a> <br />
                </li>
                <li id="under" style="padding-left: 30%;">
                    <a href="http://twitter.com">About</a> <br />
                    <a href="http://facebook.com">Policies</a> <br />
                    <a href="http://linkedin.com">Careers</a> <br />
                    <a href="http://pinterest.com">Press</a> <br />
                    <a href="http://youtube.com">Developers</a> <br />
                </li>
                <li id="under" style="padding-left: 50%;">
                    <a href="http://twitter.com">Detroit</a> <br />
                    <a href="http://facebook.com">London</a> <br />
                    <a href="http://linkedin.com">Florida</a> <br />
                    <a href="http://pinterest.com">Las Vegas</a> <br />
                    <a href="http://youtube.com">California</a> <br />
                </li>
                <li id="under" style="padding-left: 70%;">
                    Fusce dapibus, tellus ac cursus commodo, tortor mauris <br />
                    condimentum nibh, ut fermentum massa justo sit amet <br />
                    risus. Integer posuere erat a ante venenatis dapibus <br />
                    posuere velit aliquet. Praesent commodo cursus magna, <br />
                    vel scelerisque nisl consectetur et. Sed posuere consectetur <br />
                </li>
            </ul>

            <img id="fterblk" src="fterblk.png" alt="black" />
            <p style="text-align: center center; position: absolute; top: 285%; left: 50%;color:white;  transform: translate(-50%, -50%);">Copyright 2015-2016 @renkj</p>
        </div>
</body>
</html>

And here is the SCSS:

html{
    min-height: 100%;
    margin: 0;
}
body { 
    min-height: 100%; 
    margin: 0; 
    padding: 0; 
}
.menu li {
      display: inline-block;
      color: #fff;
      text-align: center;
      position: absolute;
      top: 5.3%;
}

/* More CSS rules... */

(Please note that the images are not displayed on jsfiddle. Focus on the "Follow us" section and below, "Get to know us" and below, "Locations" and below, and "Our Mission" and below.)

The text in the lower part of the webpage appears unselectable and the links do not work properly. Any suggestions on how to fix this issue? Thanks!

Answer №1

Your .below li elements currently have:

padding-left: 70%;

Please update it to

margin-left: 70%;

Check out this JSFiddle link for reference.

Additionally, avoid using:

            <li id="under" style="margin-left: 30%;">
                ...
            </li>
            <li id="under" style="margin-left: 50%;">
                ...
            </li>

IDs should be unique, consider using classes for elements that are not unique.

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

Arranging items in the final row of a flexbox

, I am seeking a solution that goes beyond the repetitive ones provided before. I need to find a more efficient way to achieve my desired outcome based on the code snippet below. In examining the code, it's clear that the first row accommodates 6 ele ...

Creating a responsive layout in HTML/CSS where the div element expands to fill the entire vertical space of its parent

Looking for assistance in creating a webpage layout like the one shown in this fiddle... http://jsfiddle.net/jeljeljel/5BSva/ I need the vertical line on the left side navigation tab to extend all the way down to the footer at the bottom of the page. Th ...

Fluid Grid System with columns of specific dimensions

Recently delving into the world of Foundation Framework, I've just begun utilizing it for my projects. My current task involves crafting a responsive design with the help of the Foundation Grid system. Specifically, I've set up a grid layout for ...

"Troubleshooting the lack of background image display in Next.js when using

Can anyone help me figure out why my background image disappears when I add a linear gradient? It shows up fine without the gradient, but as soon as I include it, the image vanishes. <div className="hero" style={{background: "linear-grad ...

Implement a dialog on top of a current web page, achieve php-ajax query result, and enhance with

My website features 'dynamic' content, where 'static' nav-buttons replace specific div contents upon clicking. While I am able to retrieve my php/ajax results in a dialog box, I am struggling with placing this dialog above my current p ...

What are some ways to customize the text and button location for Bootstrap 5's file input?

Bootstrap 5's input type file seems too simplistic. Check it out here https://i.stack.imgur.com/VZ0h5.png I am curious about three things: Can the "Choose file" button be moved to the right? Is it possible to change the message that says "No files ...

The mobile navigation bar may not display correctly on certain iPhones and iPads

Currently using a custom theme on Prestashop 1.6 where minor changes have been made to the CSS file, focusing mostly on colors and fonts. Interestingly, the mobile menu functions flawlessly on Android devices that were tested. However, some Apple devices s ...

How to position an absolute div in the center of an image both vertically and horizontally

Can someone help me figure out how to center a div inside an image? I seem to be having trouble with the positioning and alignment. Any suggestions or advice would be greatly appreciated. Thanks! .template-banner{ width: 100%; height: auto; margin: 0; } ...

align the horizontal navigation bar

I am facing an issue with my horizontal navigation bar. I want to include a search bar within the navigation bar, but it is causing misalignment. Here is the link to the code: https://jsfiddle.net/r6ntxg2f/ If you look at the menu, you will notice that i ...

What is the best way to align inline-block elements in the center?

I'm looking for a way to center inline-block elements, but I haven't had much luck so far. When I tried using margin-top: x em;, it just moved the image down instead of centering it. The inline-block is intentionally nested inside an image block. ...

Drag to rotate using JavaScript when the mouse is pressed down

I am experimenting with making a spinning wheel rotate as the user drags the mouse over it. The wheel consists of 3 pieces, so I have individually mapped each image to target the specific section of the wheel that I want to rotate. Currently, it is funct ...

Error encountered in onclick handler due to unterminated string literal in PHP and jQuery

Trying to utilize PHP to send variables into the onclick of an element is resulting in an "Unterminated string literal" error due to long strings. Below is a snippet of my PHP code: $query = $conn->prepare("SELECT Name, Image, Description, Link, Price, ...

Creating a mobile-friendly navigation bar with Vuetify for optimal responsiveness

I am attempting to utilize a vuetify tab component as my navigation menu in order to create a responsive navbar using vuetify. The goal is to have a normal navbar that functions like usual, but when viewed on a mobile device, it should hide the menu and di ...

changing the vertical position of an element using JavaScript

I'm currently working on a project where I have a canvas that animates upwards when a button is clicked. However, I'm facing an issue with making it go back down after the animation completes. It seems to be getting stuck and not returning to its ...

The issue of JQuery and document ready being triggered multiple times while loading data into a control

Ever since implementing the load function to load content into a DIV upon document ready, I've noticed that all associated functions are firing multiple times (often twice, and sometimes endlessly). The scripts included in the head tag of all pages a ...

The click event fails to trigger while trying to parse external HTML

Currently, I am working on a project that requires me to load HTML from an external file and insert it into an existing div element. Although the process is successful overall, I have encountered an issue where the .click() events do not trigger when click ...

Conceal elements within a div using the 'elementFromPoint' function

In my HTML, I have a div that contains an icon and some text. I want to make it so that when I hover over the div with my mouse, only the div itself is visible to the 'elementFromPoint' function. How can I achieve this? Here is an example of th ...

Generate responsive elements using Bootstrap dynamically

I'm having success dynamically generating bootstrap elements in my project, except for creating a drop-down menu. ColdFusion is the language I am using to implement these div elements: <div class="panel panel-primary"><div class="panel-head ...

The jQuery ajax request will only display the data in the HTML once

Hey there! I am facing an issue where, when I click on my button to make an ajax request, it works perfectly and displays the data on my select item. However, on clicking the button again, the data is fetched correctly but the select item shows the data t ...

There are two different ways to set a hyperlink in HTML. One method is by using the href attribute, where you provide the URL inside the quotation marks. The other

While browsing, I stumbled upon this interesting piece of JavaScript code: onClick="self.location.href='http://stackoverflow.com/'" I incorporated this code into my website, and it seems to have the same effect as using the href attribute. Sin ...