Having trouble getting the edits in my SCSS file to reflect in the HTML

After downloading a theme, I attempted to edit the background of the "navbar_fixed" in the

<header class="main_menu_area navbar_fixed">
.scss code for custom CSS. However, despite my efforts, the changes made in the .scss file do not reflect in the HTML file, as it continues to display the previous codes.

The HTML code snippet is as follows:

<header class="main_menu_area navbar_fixed">
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <a class="navbar-brand" href="#"><img src="img/logo.png" alt=""></a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span></span>
            <span></span>
            <span></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav">
                <li class="nav-item active"><a class="nav-link" href="index.html">Home</a></li>
                <li class="nav-item"><a class="nav-link" href="about-us.html">About Us</a></li>
                <li class="nav-item dropdown submenu">
                    <a class="nav-link dropdown-toggle" href="service.html" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Services </a>
                    <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <li class="nav-item"><a class="nav-link" href="bigdata-hadoop.html">BigData Hadoop</a></li>
                        <li class="nav-item"><a class="nav-link" href="artifical-inteligance.html">Artificial Intelligence</a></li>
                        <li class="nav-item"><a class="nav-link" href="machine-learning.html">Machine Learning</a></li>
                        <li class="nav-item"><a class="nav-link" href="embedded-system.html">Embedded System</a></li>
                        <li class="nav-item"><a class="nav-link" href="internet-of-things.html">Internet of Things (IOT)</a></li>
                        <li class="nav-item"><a class="nav-link" href="soft-skills.html">Soft Skills</a></li>
                    </ul>
                </li>
                <li class="nav-item"><a class="nav-link" href="service.html">Tutorials</a></li>
                <li class="nav-item"><a class="nav-link" href="portfolio.html">Gallery</a></li>
                <li class="nav-item"><a class="nav-link" href="portfolio.html">Career</a></li>
                <li class="nav-item"><a class="nav-link" href="contact.html">Contact</a></li>
            </ul>
        </div>
    </nav>
</header>

The .scss code snippet for the Main Menu Area is as follows:

/* Main Menu Area CSS */
.main_menu_area{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    z-index: 30;
    padding: 0px 45px;

    /* Additional CSS rules go here */
}

.main_menu_area .navbar{
    /* CSS rules for navbar */
}

/* End Main Menu Area CSS */

/* Global Variables */
$rob: 'Roboto', sans-serif;
$open: 'Open Sans', sans-serif;
$baseColor: #97ccfe;
$dip: #0b1033;
$pfont: #7c8d93;

$gradient: linear-gradient(to right, #b1abdb 0%, #a6d6ff 100%);
$mrgn:-10px;

The expected outcome is to change the background of the fixed navbar upon scrolling down.

Answer №1

One must actively compile their sass code to create a .css file using a .scss program. An effective tool for this is the koala-app, a live SASS compiler available here. After compiling, simply link the generated .css file to your HTML file using

<link rel="stylesheet" href="the_path_to_your_css_file.css" />
. This process is similar to linking a regular CSS file in your project.

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

Incorporating a clickable button over a video

I've exhausted all available resources trying to figure this out and have hit a dead end. My goal is to place a button on top of the video, but my lack of CSS expertise is hindering me. Can someone please help me identify what I'm doing wrong wit ...

Guide on combining vendor CSS files in a React application using Webpack

Incorporating third-party libraries is an essential part of my project. For example, I have Mapbox GL installed via npm, which comes with CSS files needed for its functionality. The Mapbox GL CSS file can be found at mapbox-gl/dist/mapbox-gl.css in the no ...

Activate hover effect on desktop screen (excluding tablets and phones) by utilizing media queries

Applying hover state styling to a div can be done like this: div { &:hover { color: red !important; border: 3px solid red !important; } } To exclude iPads and other tablets from this CSS style, you can util ...

PHP is unable to match a CAPTCHA code with the string entered by the user

I've developed a login system along with a CAPTCHA string that randomly generates characters in the form A1B2C3, containing uppercase and lowercase letters. Below is the code snippet: $cArr1 = array_merge(range("a", "z"), range("A", "Z")); $cArr2 = r ...

Looking for a PHP add-on for fpdf converter that can handle ul li tags

I need assistance with using fpdf to convert dynamic site content to pdf. The issue is that fpdf does not support ul li tags. Is there an add-on available for fpdf that supports ul li and ol li tags in html? To provide more context: The content being con ...

Custom-designed background featuring unique styles

I have implemented the following code to create a continuous running banner: <style> #myimage { position: fixed; left: 0%; width: 100%; bottom: 0%; background:url("http://static.giga.de/wp-content/uploads/2014/08/tastatur-bild ...

Display different website content in a div when the page loads

My current project involves creating a team website hosted on a LAMP server. This website includes various "team pages" dedicated to different age groups. I am facing the challenge of integrating "external" content (from another page within my domain) into ...

The previous link is still present in the current URL

Having some trouble with my button code here. I'm new to HTML and I have a button that references another HTML file using a parameter. <a class="btn btn-primary" role="button" href="reto_resultado/{{ clave_primaria }}">Check</a> The issu ...

Position the middle character within a span that has the identical width and height

My goal is to align characters in the center of a span. CSS span{border-radius:10px; width:20px; height:20px; color:#fff; background:#cc0000; text-align:center; line-height:20px; display:block;} HTML <span>+</span><br> <span>-&l ...

What is the best way to create a straightforward menu for my HTML game?

I have been working on a basic HTML game and it seems to be functioning more or less. I'm wondering if it's possible to create a simple menu with an image in the background and a "click to start" button within the same file. Any suggestions or ti ...

Is there a way to distinguish between automated bots and human users who are visiting my website?

Is there a way to detect if a bot is navigating my website? My website requires users to submit a form in order to access the next page. To speed up the page load time, I perform additional background database queries when a user submits the form. Howev ...

Why is it that a label tag cannot be placed directly above an input tag?

On this particular page: http://getbootstrap.com/components/#input-groups-buttons If you modify the Go! button to a label (using Chrome inspector), you will observe that the Go! button is no longer positioned on top of the input field: https://i.sstatic ...

Loading Ajax content into div (Wordpress) without pre-loading the font can cause display issues

Currently, I'm implementing a JavaScript function within Wordpress using Ajax to load the content of a post into a modal div when specific elements are clicked. Here is an example of how the JS function appears: function openProjectModal($that) { ...

Navigating dynamic URLs with various URI segments in cPanel

<a href="www.mysite.com/index.php?information/adminpanel/<?php echo $id;?>" name="approve" id="approve" ">Approve >></a> After redirecting to the specified URL, the correct ID is displayed in the address bar but unfortunately, ...

"Implementing master page and CSS styles on a child page: A step-by-step

Currently, I have a master page that is successfully being applied to all of my pages. However, it seems to be encountering an issue when trying to locate the CSS file address for pages within child folders. The folder structure looks like this: <scri ...

Exploring HTML5 Canvas - Focusing on a Specific Point

There have been discussions on this topic before, like this particular one. I followed the suggestion from that discussion and it did the trick. However, I'm still puzzled about the reasoning behind why it works. Here's an illustration: Imagine ...

What are the challenges associated with using replaceChild?

function getLatestVideos(url) { var http = new XMLHttpRequest(); http.open("GET", url, false); // false for synchronous request http.send(null); return http.responseText; } var videosText = getLatestVideos("https://www.googleapis.com/youtube/v3/se ...

What is the Best Way to Ask Users Not to Delete Local Storage Information?

As I work on developing an application using angularJS, the need to save data locally has arisen. To achieve this, I am utilizing HTML5 local storage. One challenge faced with HTML5 local storage is that when a user clears their browsing data, all stored ...

Having trouble getting StencilJS Bottomsheet to work properly? Looking for a way to smoothly slide up your content?

I've been working on creating a Bottomsheet in Stencil, but I'm facing an issue where it shows up suddenly when activated. My goal is to display the overlay when the active property is set, and then smoothly slide up the content. Below is my comp ...

Issue with box shadow appearing incorrectly as element content increases in size while the body has an image background

After applying a box shadow to the header div, I noticed that the box shadow doesn't display properly when the hidden elements within the header are revealed. <div id="header"> <div id="logo"> <a href="#"><img src="logo.png" ...