The CSS is getting overridden by the a:-webkit-any-link user agent stylesheet

I've found myself faced with a page full of lists and links that I need to style individually. No matter what I try, the fonts and colors keep getting overridden by an unknown user agent stylesheet. I've experimented with styling the divs using classes, ids, and inline styling, but none of them seem to override the user agent stylesheet.

    <div id="dafoot">
        <ul id="footList">
            <li class="footTop">
                    <a href="index.html">Home</a>
                </li>
                <li class="footTop">
                    <a href="bikes.html">Bikes</a>
                    <ul class="footUnder">
                        <li class="footSubBottom"><a href="mBikes.php">Moutain</a></li>
                        <li class="footSubBottom"><a href="rBikes.php">Road</a></li>
                        <li class="footSubBottom"><a href="kBikes.php">Kids</a></li>
                        <li class="footSubBottom"><a href="sBikes.php">Specialty</a></li>
                    </ul>
                </li>
                    <li class="footTop"><a href="activities.php">Activities</a>
                    <ul class="footUnder">
                        <li class="footSubBottom"><a href="seminars.html">Seminars</a></li>    
                        <li class="footSubBottom"><a href="cff.html">Cycle for Fit.</a></li>
                        <li class="footSubBottom"><a href="choose.html">Choose your bike</a></li>        
                        <li class="footSubBottom"><a href="rides.html">Rides</a></li>    
                    </ul>
                </li>
                    <li class="footTop"><a href="contact.html">Contact</a>
                    <ul class="footUnder">                                
                        <li class="footSubBottom"><a href="visit.html">Visit us</a></li>
                        <li class="footSubBottom"><a href="info.html">Contact Info</a></li>        
                    </ul>
                </li>

                <li class="footTop"><a href="qa.html">Q & A</a>
                    <ul class="footUnder">
                     <li class="footSubBottom"><a href="faq.html">FAQ's</a></li> 
                     <li class="footSubBottom"><a href="ask.php">Ask a Q</a></li>
                    </ul> 
                </li>
                <li class="footTop"><a href="about.html">About</a>
                    <ul class="footUnder">
                        <li class="footSubBottom"><a href="history.html">History</a></li>    
                        <li class="footSubBottom"><a href="staff.html">Staff</a></li>
                        <li class="footSubBottom"><a href="employ.html">Employment</a></li>   
                    </ul>
                </li>
        </ul>    
        <a href="owner.php">Owner Portal</a> 
        </div>

CSS

     /**/
    /* Styling for the footer list */
    /**/

#dafoot{
float: left;
margin-bottom: 10px;
margin-left: 10px;
margin-top: auto;
line-height: 15px;
width: 1077.5px;
margin-top: 10px;
position:relative;
color: white;
background-color: white;
}

#footlist{
    font-size: 25px;
    color: #ffbb00;
    list-style: none;
}

a .footTop{
    color: white;
    font-family: Georgia;
}

Answer №1

Oh my goodness..... I forgot to capitalize the P in printMessage. All fixed now. Remember beginners, always double check your syntax and capitalization before submitting your code on coding forums.

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

Customize Material-UI Icons styles in React app

I'm working on a React.js app with Typescript and I need to remove the default visited Material Icons coloring from an anchor tag. Here's the stylesheet I tried: const useStyles = makeStyles((theme: Theme) => createStyles( myAnchor: ...

Adjusting the array when items in the multi-select dropdown are changed (selected or unselected)

I am looking to create a multi-select dropdown in Angular where the selected values are displayed as chip tags. Users should be able to unselect a value by clicking on the 'X' sign next to the chip tag, removing it from the selection. <searcha ...

IFrame displaying blank page instead of report

The following code snippet displays a report within an IFrame: HTML <div id="dialogReport"> <div> <iframe id="reportFrame" style="width: 800px; height: 600px; border: 2px solid black; margin: 10px auto;"> </iframe> </di ...

Expanding SVG Button Overlay in ChakraUI

I am trying to design a uniquely shaped button that sits on top of an image, but I am encountering some challenges with the scaling of the button mask. Both the image and masks were created at the same base dimensions for easy alignment at 0,0. Here is a ...

Centered Tailwind CSS logo design

Here is my current fiddle: https://jsfiddle.net/w5c36epd/ Upon close inspection, you may notice that the logo is not properly centered. I have experiment with various flexbox options such as: <div class="flex-shrink-0 justify-center"> ...

Integrating AngularJS code into dynamically generated HTML using JavaScript

I am currently utilizing an outdated version of AngularJS (1.3). I have a page where I need to dynamically display different content based on database values. If the user interacts with the page and changes the database value, I want the displayed content ...

What is the process of utilizing jQuery to hover over a relevant cell?

I'm interested in learning how to implement jQuery to highlight related tables. Initially, I explored this JS fiddle and discovered a method for highlighting both vertically and horizontally. I conducted several searches to find a similar approach, ...

Creating a secondary title for a Bootstrap Navigation Bar

I have a unique Bootstrap 4 website that features a navbar. The navbar consists of a special brand section with an image and title text, followed by the rest of the navbar elements. You can view it here: https://jsfiddle.net/zmbq/aq9Laaew/218793/ Now, I a ...

Restricting choices once user selects an option (HTML)

Currently, I am faced with a dilemma regarding two sets of options for an HTML form. One set consists of various units (such as cm, in, ft.), while the other set includes different locations. The selection of a unit would restrict certain location option ...

Positioning MDL cards in HTML documents

Seeking guidance on positioning MDL cards alongside existing text. I've attempted various methods without success so far, and the desired outcome has not been achieved. The goal is to have text aligned to the left (which is currently satisfactory) wi ...

What causes a fixed position div to extend beyond the boundaries of the main container?

Below is the CSS for the fixed div: .top-container { position: fixed; width: 100%; z-index: 999; } Upon zooming out the screen, the div causes the main container to break on the right side while the left side remains unchanged. Refer to the screenshot be ...

How can I insert PHP code within the style attribute of a div tag?

I tried implementing this code, but unfortunately it's not functioning properly. My goal is to take user-defined width and height inputs in PHP and use them to generate a shape. echo "<div style='width:<?php $sirina?>;height: <?php $v ...

An alternative solution for forms within forms

I'm in need of nested forms, but since they are not allowed in HTML, I've come up with a solution. I decided to have several submit buttons within one form. Now, my problem is figuring out how to determine which of the submit buttons is pressed ...

Struggling to make align-content function properly in a CSS flexbox layout grid

Utilizing CSS flexbox for designing a grid of items that wrap on resizing the page. Wanting to achieve a horizontally centered grid, successfully done with justify-content: center;. However, facing an issue where the last box in some cases is centered inst ...

In JavaScript, what is the best way to target the initial option element in HTML?

As a newcomer to javascript, I'm wondering how to target the first option in the HTML <option value="">Choose an image...</option> without altering the HTML itself? My thought is: memeForm.getElementById('meme-image').getElement ...

Troubleshooting: Unresponsive behavior of CSS table

I have been working on implementing responsive CSS for a table. I recently came across a helpful tutorial on http://css-tricks.com/responsive-data-tables/ (How to create a responsive table using CSS). While the tutorial worked fine on some sample pages, I ...

Utilize jQuery to serialize the HTML input elements that are dynamically generated outside of the form

A proof of concept is in progress for an application that involves the generation of HTML elements based on user-configured fields. Here is a sample configuration: // Customer SAM $response = array( array ( NAME => CUSTOMER, TYPE = ...

What is the best way to display various tables depending on the grouping of a specific row value?

Recently, I came across some interesting JSON data that looks like this: [ { "fruit":"apple", "country": "A" }, { "fruit":"banana", "country": "b" }, { "fruit":&q ...

"Clicking on the 'View More' button within a foreach loop is only functional for the

I am trying to iterate through a list of items using a foreach loop, and each item has a "view more" option. The intention is that when I click on this option, it should expand to show more details about the respective item. However, I am encountering an i ...

Nesting maps in JavaScript is a powerful way to transform

I'm in the process of developing a budgeting app using React and JavaScript. At the moment, I have successfully generated a table displaying various costs. Name Budget Used $ Used % Available Food 300 300 100 0 Streaming services 600 600 100 ...