Unable to change the color of ul.menu

I've been experimenting with different methods but I can't seem to change the color, there must be something I'm missing!

How can I update the text color for all the lower links in the footer section?

Here is my HTML code:

<!-- Footer -->
 <footer id="footer">
  <div class="inner">
    <p class="copyright">&copy; MY SITE - 2017 All Rights Reserved.</p>
   <ul class="menu">
    <li><a href="terms.html">Terms<span> of Use</span></a></li>
    <li><a href="privacy.html">Privacy<span> Policy</span></a></li>
    <li><a href="#">Downloads<span></span></a></li>
   </ul>
  </footer>

This is my CSS code:

#footer {
        padding: 5em 0 3em 0 ;
        background-color: #fff;
        text-align: center;
    }

        #footer > .inner {
            margin: 0 auto;
            max-width: calc(100% - 4em);
            width: 60em;
        }

        #footer .copyright {
            color: #000;
            font-size: 0.8em;
        }

        #footer .menu {
            color: #000;
            font-size: 0.7em;
        }

    ul.menu {
            padding: 0;
            list-style: none;
        }

            ul.menu li {
                padding: 0;
                display: inline-block;
                margin-left: 0.75em;
                padding-left: 0.75em;
                border-left: solid 1px;
                line-height: 1em;
            }

                ul.menu li:first-child {
                    margin-left: 0;
                    padding-left: 0;
                    border-left: 0;
            }

Link to JSFiddle

Answer №1

Here is a simple CSS method to achieve this:

 ul.menu li a {  
     color : green;
  }

I have also updated the fiddle link, you can check it out here: https://jsfiddle.net/g3m6orpg/3/

Answer №2

One potential solution is to apply the following CSS rule:

#footer ul li a { color:#000;}

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

What could be causing the misalignment of the Datepicker calendar in Material UI?

I have integrated a datepicker using the library "@mui/x-date-pickers/DatePicker". import { DatePicker } from "@mui/x-date-pickers/DatePicker"; import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment"; import { Locali ...

automatically changing the input type based on the selected option in the dropdown menu

Currently, I am working on a project that involves attendance management. One of the key features I am implementing is a drop-down box where users can select a month. When a month is selected, a dynamic number of buttons will be generated in a separate div ...

Arranging blocks within blocks? Placing additional text underneath a block

Looking to append some text at the end of a block called .label. Inside this block, there is a sub-element called .label_title, and below that is a picture/link enclosed in another block. Under the picture/link, I wish to include a short description while ...

Nodemailer is experiencing issues with displaying HTML content correctly

<div style = "height:auto;width:auto; background-color:#5C81F4;display:flex; justify-content:center;"> <div style="display:flex;flex-direction:column; width:90vw;height:auto;overflow:hidden;border-radius:20px; background-color:# ...

Deletion of an element with Reactjs upon clicking

A photo gallery consists of a collection of photos with corresponding delete buttons. Below is the HTML snippet for a gallery containing two images: <div> <div class="image"> <img src="URL1"> <button class="remove">X</ ...

Creating a CSS style to increase the height of a column within a fixed size overflow container

Is there a way to increase the height of a column within a fixed size overflowed div? When using overflow: auto, setting height: 100% does not extend all the way to the end of the scroll. In my JSFiddle demonstration, I am aiming for the red column to ma ...

Exploring the position property in CSS

Seeking assistance as a CSS beginner. Currently working on a project where I have managed to position container_main right next to container_menu, utilizing the remaining screen space by assigning them relative and fixed positions, respectively. container ...

The deletion by index feature seems to be malfunctioning in Angular

Is there a way to delete an item by its ID instead of just deleting the last element using this code? I want to create input fields with a delete button next to each one simultaneously. TS: public inputs: boolean[] = []; public addNew(): void { this ...

What's the best way to update the menu element colors as I scroll down the page?

I am looking to update the color scheme of menu elements as the page scrolls using the provided template. I tried a few methods, but they lack dynamism. How can I make it more dynamic? $(document).ready(function(){ //scroll animation $('.navigati ...

Is SqliteDataReader not compatible with C#?

Currently, I am facing an issue with displaying data from a SQLite database on a web page using C#. Despite my efforts to find a solution and only coming across the console.writeline method, the SqliteDataReader function is not functioning properly. Below ...

Tips on customizing the appearance of the dropdown calendar for the ngx-daterangepicker-material package

Is there a way to customize the top, left, and width styling of the calendar? I'm struggling to find the right approach. I've been working with this date range picker. Despite trying to add classes and styles, I can't seem to update the app ...

redux form has encountered an error: the element type provided is not valid, a string is expected for built-in components

While working on my stepper code, I attempted to add a radio button. However, this addition resulted in the following error. I referenced this example before implementing it. Despite that, I am still encountering errors. Could you please advise me on how ...

How to center a Bootstrap 4 navbar with brand and links in the middle

I'm facing some difficulty in centering the navigation bar of my website, including the brand and the links. Since I am more focused on backend development, I'm struggling with the frontend aspect of this. Code <script src="https://ajax.go ...

Using Javascript to replace elements with input fields and text areas

I'm currently working on a unique project for my Wordpress blog, where I am developing a custom block editor using JavaScript on the frontend. The goal is to convert all elements from the post content into a series of inputs and textareas. To begin, ...

My HTML gets rearranged by browsers, causing a change in appearance

UPDATE: I have discovered that the issue lies with Internet Explorer which alters the class attribute of an HTML element from: "<img class="blah".." to "<img class=blah..". This inconsistency only occurs in IE for me. It does not affect other attr ...

JavaScript function not functioning properly with variable input

I'm currently working on implementing two functions that will allow me to navigate through an array of image sources and display them in my image view: nextImage() and previousImage(). Everything seems to work fine when I hardcode the num variable, bu ...

What is the best way to clear an arrayList when an error occurs in the ajax response?

Within my code, I have initialized an empty arrayList as var selection11Data = [];. Data is retrieved from an AJAX call as shown below: var selectionId=trData.selectionId; console.log("here"); $.ajax({ url : A_PAGE_ ...

Adding design elements to HTML 5 components

Are there any potential downsides to applying CSS to the <section>, <header>, <article>, and <footer> elements? I vaguely remember reading somewhere that these elements should not be styled, but I can't seem to locate the sourc ...

Guide to setting the first tab as the default tab using Thymeleaf, Css, and Bootstrap

I am currently working on a project where I need to dynamically create tabs based on a list retrieved from my Spring backend using Thymleaf and Bootstrap. While I have managed to successfully create the tabs and content, I am facing an issue where the fi ...

Troubleshooting a CSS problem within ASP GridView caused by excessively lengthy text

I have a gridview on my ascx control that allows direct data editing. One of the fields is a text field with a limit of 50 characters. When I reach this limit and try to edit the cell, it appears as follows: This layout is correct. However, when I try to ...