Images failing to appear

I am currently working on a basic webpage. All the text is showing up correctly, but for some reason, the icon I'm trying to display is not appearing. The icon is supposed to be from the ionicons framework.

I've double-checked the path to the ionicons.min.css file and made sure that the correct icon name is used in that CSS file.

Here's my HTML file:

<!--DOCHtml5-->
<html lang="en">
<head>
    <meta charset="utf-8">
    <link href="style.css" type="text/css" rel="stylesheet">
    <title>webpage</title>
    <link href="https://fonts.googleapis.com/css?family=Euphoria+Script" rel="stylesheet"> 
    <link href="https://fonts.googleapis.com/css?family=Montez" rel="stylesheet"> 
    <link href="icons/ionicons.min.css" rel="stylesheet" type="text/css">
</head>
<body>
    <div class = "name">
        Name
        <ul class = "social-icons">
            <li><i class="ion-arrow-right-a"></i></li>
        </ul>
    </div>   
</body>
</html>

And here's my CSS file:

*{
    margin:0;
    padding:0;
    font-family: 'Euphoria Script', cursive;
    font-size: 100px;    
}

body{
    height:100vh;
    margin: 0;
    padding: 0;
    background-color: #ef6758;
}

.name{
    position:absolute;
    top:35%;
    left:31%;
    font-family: 'Montez', cursive;
    color: #4be214;
}

.social-icons li{
    list-style: none;
}

The icon is expected to be visible, so I'll need to troubleshoot why it's not showing up.

Answer №1

Make sure to go through it. It should work for you, as the issue might be with the font-family files not being found in your CSS.

*{
    margin:0;
    padding:0;
    font-family: 'Euphoria Script', cursive;
    font-size: 100px;    
}

body{
    height:100vh;
    margin: 0;
    padding: 0;
    background-color: #ef6758;
}

.name{
    position:absolute;
    top:35%;
    left:31%;
    font-family: 'Montez', cursive;
    color: #4be214;
}

.social-icons li{
    list-style: none;
}
<!--DOCHtml5-->
<html lang="en">
<head>
    <meta charset="utf-8">
    <link href="style.css" type="text/css" rel="stylesheet">
    <title>webpage</title>
    <link href="https://fonts.googleapis.com/css?family=Euphoria+Script" rel="stylesheet"> 
    <link href="https://fonts.googleapis.com/css?family=Montez" rel="stylesheet"> 
    <link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css">
</head>
<body>
    <div class = "name">
        Name
        <ul class = "social-icons">
            <li><i class="ion-arrow-right-a"></i></li>
        </ul>
    </div>   
</body>
</html>

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

Toggling back and forth between two divs using a pair of buttons

I've been experimenting with switching between two divs using two buttons, but I can't seem to get it right. I've searched all over the internet, but nothing has worked for me so far. Can you please point out what I might be doing wrong? Als ...

Tips on hiding the menu toggler in PrimeNg

Struggling with PrimeNg implementation in my Angular project, I am unable to find a simple solution to hide the menu toggler. Allow me to illustrate my current setup in the first image and what I desire in the second. Let's dive in: View First Image ...

Display HTML containing a <script> tag within a REACT component

Looking to embed the following HTML code within a React component: <form action="/process-payment" method="POST"> <script src="https://www.example.com/payment-script.js" data-preference-id="$$id$$"> </script> </form> I ...

Enable highlighting a table border when hovering over it

Is there a way to highlight the boundary of a table row when hovering over it? Something like this: https://i.sstatic.net/PbQSR.png I attempted to use CSS with the following code: .ant-table-tbody>tr.ant-table-row:hover>td, .ant-table-tbody>tr&g ...

Customize the appearance of semantic-ui-react components with hover effects

When I assign a specific className to components like <Segment className="Change" color='blue' inverted></Segment> and then in my CSS I apply the following: .Change:hover{ background-color: black; //or any other hover effect } N ...

Error messages in HTML5 are notifications that are triggered when

My application features multiple tabs, each containing input fields that I want to validate on the client side. I am currently using HTML5 attributes like required and pattern to achieve this. When a required field in the first tab is left empty, the error ...

What are the steps to properly centralize a "brief biography"?

I've been struggling to align my short bio on my webpage. I used Bootstrap to create a column layout with a picture and text, but I can't seem to center it properly. Various attempts were made, including using float: left and float: right, as we ...

difficulty in obtaining information submitted through a form

I'm having an issue with my contact form. I tried testing to see if I can retrieve the values from the form, but it's giving me back: name: undefined I'm not sure why it's not working! Here is the code for the form: <form met ...

Tips for executing parallax designs, similar to the techniques used on the

Currently, I am in the process of creating a website that utilizes parallax scrolling. Here is a brief overview of what I have accomplished thus far. I decided to use the skrollr plugin to achieve the desired parallax effect. Through this plugin, I was abl ...

Obtaining only a portion of the text when copying and editing it

I have a React application where I am attempting to copy text from an HTML element, modify it, and then send it back to the user. I have been successful in achieving this, but I am facing an issue where even if I select only a portion of the text, I still ...

I can't seem to figure out why I constantly struggle with adding a check mark to a checkbox using

Take a look at the code I've provided below : HTML : <input type="checkbox" name="xyz[1][]" id="sel_44" style="margin:2px;" value="12345" onclick="myClick(this)"> Javascript : <script> $('#sel_44').attr("checked", true); < ...

Both JOINs are being performed on the identical table

Currently, I am working on a website that displays soccer scores with two teams and two scores stored in my database. Below is the code I am using: <?php $result = mysql_query( "SELECT * FROM resultat LEFT JOIN brukere ON resultat.do ...

When viewed on a mobile device, the contact information bar should vertically collapse

Here is the code snippet I am working with: <div class="topbarsection"> <ul> <li class="alignleft"> <a href="#">Office Address</a> </li> <li class="aligncenter"> Office Timings ...

Container slide-show fill error

I'm attempting to create a slide show with an overlapping caption that appears when hovering over the container or image. The image needs to fit exactly inside the container so no scroll bar is shown and the border radius is correct. I managed to achi ...

Ninja Flip ComboButton

I am looking to enhance the functionality of a toggle button within a web application that was developed using the JS Dojo API. Currently, the button is utilizing dijit.form.ToggleButton, but I need it to include an additional feature for a dropdown menu w ...

I'm trying to figure out how to retrieve data from a JQuery autocomplete response that contains an array. Specifically, I want

https://i.stack.imgur.com/YpuJl.pngThis form field is for entering text input. <span> <img src="images/author2.jpg" width="50" /> //The profile picture displayed here is static but in the database I have a dynamic image. <input class="sea ...

Leveraging the power of HTML validation while silencing the constant flood of messages

I want to keep the HTML validation in place but disable only the error message that prompts users to fill out required fields. Users should still not be able to submit the form without filling in a text field, but I don't want the standard "Please fil ...

Is it possible to remove tsconfig.spec.json from an Angular project?

I recently started learning Angular and was introduced to the files tsconfig.app.json and tsconfig.spec.json when setting up an Angular app using Angular-CLI. I found a helpful point about these files on this website. Both tsconfig.*.json files serve as ...

Learning SQL and PHP is essential for displaying data from a database in a dynamic table on a web page. In order to select specific columns from the database and arrange them in

I am working with a sql table called res that contains various rows and columns. Here is an example of the data: Sno RegNo Name sub1 sub2 sub3 total percent result color 1 1DU12CS100 s1 10 10 10 30 50 fail danger 2 ...

Selected a radio button within a jQuery UI dialog box

After using jquery-ui, I was able to create a simple dialog window. It looks like this: <div id="dialog-form" title="Add Attribute Category"> <input type="radio" id="priceable" name="price" value="true" checked="checked"/> Priceable &l ...