I am having trouble loading the .woff file

I have almost finished the design of my site, but I'm encountering a problem with installing and using a specific font. Do .woff files only display on the web once connected to a server? I'm quite confused about this. Despite following the provided guide word for word, something seems to be amiss.

In my code, you can observe how I inserted the code source in my HTML and attempted to apply it to my nav.logo file.

Here's an example of how I'm incorporating the font in CSS:

<!DOCTYPE html>
<html>
    <head>
        <title>DADD | Stream Music, Connect, &amp; Merch | DADD </title>
        
        <!-- Font imports -->
        <style type="text/css">
            @import url("https://fast.fonts.net/lt/1.css?apiType=css&c=8fd2ccbb-9bc3-4d04-babb-ab917cc454a1&fontids=738462");
            @font-face {
                font-family: "Microgramma W02 Bold Ex";
                src: url("Fonts/738462/c7e724ac-a335-42f3-b210-c0e573c18504.woff2") format("woff2"),
                     url("Fonts/738462/73ccd7f9-454a-47d7-a355-edcb8c9cd4cc.woff") format("woff");
            }
            
            @font-face {
                font-family: "MicrogrammaExtDBol W05 Regular";
                src: url("Fonts/5121482/ea58eeb8-638f-456c-8376-d46061bcb9ba.woff2") format("woff2"),
                    url("Fonts/5121482/dbcf51ac-03ab-42bb-a698-bafb9867305c.woff") format("woff");
            }
        </style>

        <!-- Javascript for font tracking -->
        <script type="text/javascript">
            var MTUserId='';
            var MTFontIds = new Array();

            MTFontIds.push(""); // Microgramma™ W02 Extended Bold 

            (function() {
                var mtTracking = document.createElement('script');
                mtTracking.type='text/javascript';
                mtTracking.async='true';
                mtTracking.src='mtiFontTrackingCode.js';

                (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(mtTracking);
            })();
        </script>
        
        <!-- Linking external resources -->
        <link rel="icon" href="LOGODADD.png" type="image/png">
        <link rel="stylesheet" href="dadd1.css">
        <link href="https://fonts.googleapis.com/css2?family=Michroma&display=swap" rel="stylesheet">
        <meta charset="UTF-8">
    </head>

    <body>
        <nav class="nav">
            <div class="container">
                <div class="logo" id="navlogo">
                    <a href="daddhome.html">DADD</a>
                </div>
                <div class="main_list" id="mainListDiv">
                    <ul>
                        <li><a href="#">MUSIC</a></li>
                        <li><a href="daddmedia.html">MEDIA</a></li>
                        <li><a href="#">TOUR</a></li>
                        <li><a href="#">SHOP</a></li>
                    </ul>
                </div>
                <div class="media_button">
                    <button class="main_media_button" id="mediaButton">
                        <span></span>
                        <span></span>
                        <span></span>
                    </button>
                </div>
            </div>
        </nav>
        
        <footer>
            <p>D.R.E.A.M. LLC</p>
        </footer>
    </body>
</html>

Answer №1

To access the 'Fonts' folder, make sure to download it from linotype. Visit this link. Also, don't forget to eliminate the 'src' attribute from your div.logo element.

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

Highcharts' labels on the x-axis do not automatically rotate

One issue I am facing is that my custom x-axis labels on the chart do not rotate upon window resize. I would like to have them rotated when the screen size is less than 399px. Check out the code here $(function () { $('#container').highchart ...

Completely adaptable progress bar that adjusts to any screen size

I need to develop a responsive progress bar that adjusts its width dynamically. However, when I set the width to auto, the progress bar line becomes detached from the stars. How can I resolve this issue and make the progress bar responsive on mobile device ...

Tips for eliminating excess padding hidden by carousel controls

Below is the code snippet I have implemented: index.html html, body { margin: 0; padding: 0; } body { width: 100%; height: 100%; } .container { width: 100vw; height: 100vh; background-color: #fc2; } /*.container .carousel slide .carou ...

Having trouble with the functionality of Bootstrap 5 carousel?

I've been attempting to integrate this carousel into my Bootstrap 5 webpage. I found it on Codepen - https://codepen.io/sahil-verma/pen/wxXryx Thus far, I've copied the code into my webpage and linked the corresponding CSS within style tags, sim ...

Troubleshooting a Border Problem in Bootstrap 5 Accordions

Having trouble with a Bootstrap 5 accordion header that has an icon drop-up menu. The bottom border disappears under the icon and I can't figure out why? HTML <div class="w-50 mt-5 mx-auto"> <div class="accordion favorites-f ...

Combining Bootstrap Vue: utilizing class names alongside HTML tags

(Bootstrap-Vue 2.0, Vue.js 2.5) Is it possible to combine traditional CSS Bootstrap 4 classes with Bootstrap-Vue? For example, can I use the following code snippet: <section id="introduction"> <b-container class="h-100"> & ...

changing up the format of nested blockquotes

My website includes various text features, which means that nested blockquotes are a possibility. I am now curious if it is feasible to style nested blockquotes differently from each other! blockquote{ background-color:#666; color:#fff; border ...

Uncovering Hidden Div Elements using Chrome Developer Tools

I have developed my own HTML editor, which you can access at this link: HTML Editor. Below is the relevant source code: const previewer = document.querySelector('iframe'), editor = document.querySelector('textarea'), // other varia ...

Capybara encountered an ambiguous match, detecting 2 elements - how to choose an unidentified, distinct selector

I'm currently working on a UI test for a page that contains two buttons. While I can easily target these buttons, I am struggling to locate the unique selector assigned to describe each button. In my test spec file, I am validating the response and re ...

Can you explain the distinction between ' &:hover' and ' & :hover' pseudoclass selectors?

While styling a Material-UI Button, I encountered an unexpected behavior when adding hover effects. When using & :hover, only the inner span of the button was affected. However, when using &:hover, the desired style was achieved. What is the diff ...

Having trouble with Gulp JS and CSS minification where existing minified files cannot be replaced

I've hit a roadblock in trying to resolve my search and google issue. My current challenge involves Gulp and cssmin. I can't seem to pinpoint the cause of an error. My aim is to have both the original CSS files and their minified versions in the ...

Manipulate inherited CSS styles from an external source

Currently, I am working on creating a pagination using the NG-Bootstrap pagination component. However, I encountered an issue where I need to modify or specifically remove some CSS properties that are applied by default in the NG-Bootstrap library. Is ther ...

Avoiding overlap in CSS Grid layout with Internet Explorer 11

Creating a date picker component that utilizes a calendar styled with CSS grid has been successful, except in IE11 where all elements appear in the top left corner. Is there a specific CSS property for IE11 that could fix this, or is it simply not compatib ...

HTML min-width is not being considered by the media query breakpoint

After resizing the browser window to less than 480px, my site reverts back to its original style (the css not defined inside the mixins). I attempted to limit the html with min-width, but despite the browser displaying a horizontal scrollbar, the css still ...

Sliding list in Jquery Mobile

I'm attempting to create a list using jQueryMobile similar to the one found in the Twitter application. Here's a video demonstrating what I'm aiming for: http://www.youtube.com/watch?v=l7gTNpPTChM However, I am facing two issues: 1) Each ...

Numerous inline notations in html code

I need help figuring out how to prevent a hyperlink from opening a new tab by commenting out the HTML code. <a href="<!--http://www.google.com=-->" target="_blank" onclick="javascript:alert('Navigation Prevented')">CLICK HERE FOR GOO ...

Issue with dropdown menu appearing beneath specific elements in Internet Explorer versions 7 and 8

I've been encountering some troublesome issues with a website I'm working on, specifically in Internet Explorer 7/8. On certain pages, the navigation elements are getting hidden below text and images, causing confusion for me. I've attempted ...

What steps do I need to take to design a menu?

I need assistance in organizing my menu with submenus. The code I currently have successfully retrieves all the submenus, but I would like to categorize them accordingly: For instance: Main Menu - Submenu 1, Submenu 2, Submenu 3 How can I go about categ ...

Input tag styled in a center-aligned word document format

My Desired Text Alignment: I want the text to be centered horizontally at the top of the input. Words should break after hitting the internal padding, similar to how document creation software like Google Docs works with center alignment. Current Alignme ...

What could be causing my button to be elongated in a vertical direction when a logo image is present

I am currently utilizing tailwindcss for my project. Within a flexbox container, I have placed a login button which appears to be stretched out. <nav font-am class="m-6 text-xl"> <div class="flex flex-row justify-between conta ...