What steps should I take to adjust the alignment of the arrows that should be beside the links in my footer?

Previously, the text was aligned until I added links to them. Now they are not aligning properly. Any assistance would be highly appreciated. Below you can find my CSS and HTML code along with a screenshot of the specific issue. I am unsure about the root cause of this alignment shift. Each element is categorized into classes, and the footer class is positioned at the bottom of the HTML.

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Home</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- utility css file -->
    <link rel="stylesheet" href="css/utility.css">
    <!-- style css file -->
    <link rel = "stylesheet" href = "css/style.css">
    <!-- fontawesome cdn -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==" crossorigin="anonymous" />
    <!-- google fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
  </head>
  <body>
    
    <!-- navbar section -->
    ...
  
    <!-- custom js file -->
    <script src="js/script.js"></script>
  </body>
</html>

Style CSS

...

Utility CSS

...

https://i.sstatic.net/kzU7v.png

Answer №1

You have an extra <a> tag in your code, and the CSS is set to display: block

.footer-links a{
    display: block;
    text-transform: capitalize;
    padding: 0.2rem 0;
    transition: var(--transition);
}

<a href = "#" class = "text">
    <i class = "fas fa-long-arrow-alt-right"></i>
    <a href="https://validator.w3.org/">HTML Validator</a>
</a>

To correct this issue:

<a href = "https://validator.w3.org/" class = "text">
   <i class = "fas fa-long-arrow-alt-right"></i>
    HTML Validator
</a>

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

Steps to bring life to your JavaScript counter animation

I need to slow down the counting of values in JavaScript from 0 to 100, so that it takes 3 seconds instead of happening instantly. Can anyone help me with this? <span><span id="counter"> </span> of 100 files</span> <s ...

I'm having trouble loading my Google Maps widget. Everything was functioning flawlessly until I attempted to hide it using the .hide function

After successfully implementing a Google Maps widget, I encountered an issue when trying to toggle its visibility using jQuery. Despite clicking on a div element to reveal the widget, the map fails to load inside the designated container. It seems as tho ...

The query attribute of the http_incomingmessage in Node.js is not empty, causing Express to have trouble parsing the query parameter

While utilizing node version 6.9.4 and express version 4, there seems to be an issue with the creation of the IncomingMessage object in _http_common.js. Specifically, on line number 60, the parser.incoming.query function is being set to a value (usually it ...

Error: You have reached the maximum call stack size limit in jQuery

I need help with a situation where I am trying to check a checkbox input in a table named (#gridModalListeDossiers) when it is checked in another table (#gridDossiers). However, I keep encountering an error that I cannot quite understand: https://i.sstati ...

Unable to delete React element by ID as it is undefined

Having some trouble deleting an item by ID with React. Despite the backend routes functioning properly (node and postgresql), every attempt to delete an item results in it reappearing upon page refresh. The command line indicates that the item being delete ...

Switch up the Thumbnail Image based on the selected category

While testing a shopping site I created, I encountered an issue with changing the banners at the top of the page based on the category the user is viewing. This site is hosted on a server on my localhost, not using wordpress by the way. <div class=" ...

Parent Parameter Implementation in JS Reduce Function

I am currently working on enhancing my reduce function to transform a nested JSON object into a flat list for more convenient searching. Consider the following JSON: { "MovementPatterns": [ { "Id": "", "Name": "Warm-up", ... ...

Swapping out specific HTML content with jQuery

I'm currently working on a code snippet that replaces selected text by adding "1" before and "2" after it: var content=$("#text").html(); if (window.getSelection) { // Handling non-IE case var selObj = window.getSelection(); var selRange = selObj ...

Is it possible to have Mobile WebKit store the click position?

I am in the process of developing a unique framework specifically designed for WebKit devices. One of the features I have implemented is a series of list views that activate a 'hover' class when users touch them. Below is the jQuery/JavaScript co ...

Incorrect rendering of the <li> tag

I've been working on creating a simple web "to do list" but I've encountered an issue. When I manually add todos and click on them, the 'text-decoration: line-through;' property is ignored, and I can't see the strikethrough effect ...

The iPhone automatically magnifies the content within the <select> tag

Testing out a web app on my phone and encountering an issue where clicking on the select tag zooms in, requiring me to manually zoom back out. It's not a major problem, but definitely annoying. I came across advice suggesting that setting the font siz ...

Placing a larger container inside a smaller one and perfectly centering it

I am trying to find a solution to center a 1600px container within a 940px container on my webpage. The goal is to keep the page centered at all times, with the main content being 940px wide. When I add an image that is 1600px, it aligns left with the 940p ...

Twice the charm, as the function `$("#id").ajaxStart(...)` is triggered twice within an AJAX request

I am trying to implement the following code: <script language="javascript"> function add(idautomobile,marque,model,couleur,type,puissance,GPS){ $("#notification").ajaxStart(function(){ $(this).empty().append("<center><br/><i ...

What is the Current Online Status of an FTP Server?

I am looking to create a status report for monitoring my FTP server's uptime and downtime using HTML. Despite being new to HTML, I prefer using it for this purpose because of the high demand for tracking when my FTP server is offline or online. ...

Is there a way to apply box-shadow to only specific sides?

Which specific values should be set for a box-shadow to exclusively display at the bottom? ...

Exploring third-party resources using PhoneGap

While testing an app I built locally with Dreamweaver, I encountered a problem where jQuery Mobile was able to access external resources from the server. However, after compiling my app with PhoneGap in Dreamweaver, I discovered that my app could not con ...

Server-side rendering with the Node.js mustache template engine

I am in the process of developing a basic application for compiling mustache templates into static pages on the server side. This is what I have accomplished so far: var view = { title: "Joe", calc: function () { return 2+4; } }; v ...

unable to utilize react-speech-recognition package

Looking for a simple react package that can convert user audio to text? I recently installed one and tried its basic code example, only to encounter an error message stating "RecognitionManager.js:247 Uncaught ReferenceError: regeneratorRuntime is not defi ...

Can you integrate and execute Python code within HTML?

I'm having trouble running a Python script that contains embedded HTML code. I want to execute the Python script and have it display the HTML output generated by the script. app.py: #!/usr/bin/python2.6 from flask import Flask, render_template app ...

Can CSS animation graphics slow down the speed and performance of your website?

Recently, I decided to dabble in web designing and incorporated CSS animations into my page. However, I encountered some issues with the design - particularly, the navigation bar is not functioning properly when scrolled. Moreover, the website seems to b ...