The topbar on Foundation seems to be malfunctioning - where did I go wrong?

I am trying to implement the Topbar feature of Foundation for my website's navigation. However, all I see is a plain bulleted list with no formatting whatsoever. Currently, I have only included basic external dependencies like jQuery and Foundation in my HTML file. The browser Console shows no errors and confirms that all required files are being successfully loaded. What could be causing the Topbar not to appear?

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<html>

<head>
  <!-- Page metadata. -->
  <meta charset="UTF-8">
  <meta name="viewport" />
  <title>Coding &amp; Design in INFO250</title>
  <!-- Linked CSS files. -->
  <link href="css/external/foundation.min.css" />
  <link href="css/external/normalize.css" />
  <link href="css/app.css" rel="stylesheet" type="text/css" />
  <link href="css/media.css" rel="stylesheet" type="text/css" />
</head>

<body>
  <nav class="top-bar" data-topbar role="navigation">
    <section class="top-bar-section">
      <ul class="title-area">
        <li class="name">
          <h1><a href="#">Coding &amp; Design in INFO250</a></h1>
        </li>
        <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a>
        </li>
      </ul>

      <ul class="right">
        <li class="active"><a href="#">Home</a>
        </li>
        <li><a href="#">Section 508</a>
        </li>
        <li><a href="#">MySQL</a>
        </li>
      </ul>
    </section>
  </nav>
  <div class="bg-holder splash1">
    <div class="container">
      <h1>Coding &amp; Design</h1>
      <h3>in INFO250</h3>
    </div>
  </div>

  <!-- JavaScript, linked and otherwise. -->
  <script src="js/external/jquery-2.1.3.min.js" type="text/javascript"></script>
  <script src="js/external/fastclick.js" type="text/javascript"></script>
  <script src="js/external/foundation.js" type="text/javascript"></script>
  <script src="js/external/foundation.topbar.js" type="text/javascript"></script>
  <script src="js/app.js"></script>
  <script>
    $(document).foundation();
  </script>
</body>

</html>

Answer №1

Realized that the reason it wasn't functioning was due to the lack of specifying "rel='stylesheet'" and "type='text/css'" on the references to Foundation and Normalize CSS.

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

There seems to be an issue with Bootstrap not condensing into two columns properly on mobile devices

I need help figuring out how to turn a row of 4 images into two columns on tablet and mobile devices. Currently, they are stacking in a single column instead of forming two columns. Basically, I want the images to adjust and display in two columns when vi ...

Customizing button styles with JQuery: A step-by-step guide

Hey, I'm working on implementing a button on my webpage and here's the code: <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script src="http://ajax.googleapis ...

Creating a Rails application that dynamically fills a table with data from a

Encountering an issue with Ruby on Rails. I have a "Host Model" that contains a method which has a longer runtime. class Host < ActiveRecord::Base def take-a-while # implement logic here end Attempting to access a page where this method ru ...

jQuery behaving erratically following deployment to the testing server

I am encountering an issue with jQuery in a user control that utilizes a Telerik RadGrid: <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.4.js"></script> <script type="text/javascript"> ...

Utilizing JQuery's hasClass method in conjunction with an If statement

I need the loadContent function to specifically target a certain div only when the clicked link has a particular class. This is my current implementation: function loadContent(targetDiv, sourceURL) { if ( $(this).hasClass("done") ) { $(""+targetDiv+"").lo ...

Is it possible to consolidate all CSS code into a single Style?

Recently diving into the world of HTML, I find myself tackling CSS tasks to enhance the look of my website. It's been interesting experimenting with different styles for each CSS code snippet. Each paragraph with a unique ID is getting its own special ...

Make sure that the input field and label are aligned side by side in the

Is there a way to arrange the following HTML in the specified layout? <div> <div> <label>Counterparty</label> <input id="paymentsApp-inpt-cpty" ng-model="selectedPaymentCopy.counterparty" ng-required="true" ...

Tablet-friendly dropdown menu

Seeking advice on implementing @media queries for tablets with a width of 991px. Currently, the CSS file is optimized for mobile devices but needs adjustments for tablet responsiveness in the dropdown menu. I attempted the following CSS code: @media (max ...

What is the process for incorporating dynamic templates in AngularJS?

I have created 3 unique templates (DetailView, CardView, Column) for displaying content on a single page. Users can easily switch between these views. My goal is to display only one view at a time on the page. When the user switches views, I want to remov ...

What's the best way to ensure that columns clear properly when using bootstrap?

Instead of providing code to solve an issue, I am using Bootstrap and encountering problems with the roster section where the heights are inconsistent. My temporary solutions involved adding classes to specific divs or setting fixed column heights, but I&a ...

Angular is not displaying the data from the dynamically injected component in the main component

I have encountered an issue where I am attempting to showcase a component's HTML view within another component in a chatbot scenario. Let's refer to them as the chat component and component 2. Essentially, the chat component – responsible for r ...

Adapting Vue.js directive based on viewport size - a guide

Having an element with the v-rellax directive, I'm utilizing it for prallax scrolling in this particular div: <div id="image" v-rellax="{ speed: -5 }"></div> Currently, there's a need to adjust the speed property ...

How can I make a Bootstrap 4 modal autoplay an iframe on page load?

My website features a full-screen background video that plays upon loading, and I want the same video to play when a user clicks the play button to open a modal. However, my issue is that the modal video (iframe) starts playing in the background as soon ...

Problems with form functionality in React component using Material UI

Trying to set up a signup form for a web-app and encountering some issues. Using hooks in a function to render the signup page, which is routed from the login page. Currently, everything works fine when returning HTML directly from the function (signup), ...

Why does Typeahead display a JSON object in the input field upon clicking?

My suggestion engine is working well, but I am facing an issue where the json object appears in the input element when I click on an item. I want only the OrgName to show up in the input value. <input class="form-control companySearch" type="text" valu ...

Tips for obtaining the necessary value input upon clicking?

Let's consider a scenario where you have the following JavaScript code: function openAlbum() { $("#tracks").html('Some text...'); var uid = $("#uid").val(); $.ajax({ type: "POST", url: "s.php", ...

How do I adjust the ul size to be proportionate to the header?

I have a list with corresponding hyperlinks in my code, and I am trying to make these elements the same size as the header. I attempted adding auto padding and height auto but it did not produce the desired result. Here is the HTML snippet: <header id ...

What is the best way to position my Jchartfx area graph below my gridview?

When my page loads, the graph appears like this. It consistently shows up in the top left corner even though it should be positioned underneath the grid view as intended. var chart1; function createGraph(mpy) { if (mpy == undefined) mpy = 12.00; ch ...

What could be the reason that the painting application is not functioning properly on mobile devices?

I am facing an issue with my painting app where it works perfectly on desktop browsers but fails to function on mobile devices. I tried adding event listeners for mobile events, which are understood by mobile devices, but unfortunately, that did not solve ...

What is the functionality of screen readers with regards to display flex?

When creating an HTML form, it may be necessary to dynamically change the requiredness of certain fields based on the value of others. In order to visually indicate this requiredness, you might want to add an asterisk to the label preceding each required f ...