Modify the tax price color on the shopping cart page using CSS

I'm attempting to modify the appearance of the VAT cost in the cart and checkout section of my Woocommerce website. Specifically, I want to change the color and size of the VAT display without affecting the total amount.

Here is the CSS code I am using:

.woocommerce-page .cart-collaterals .cart_totals table th:last-child {
    colour:#000000;
}

Unfortunately, this code is not producing the desired result. Any suggestions on how to make it work?

Answer №1

To start, make sure to use color instead of colour.

Give this CSS code a shot:

.woocommerce-page #content .cart-collaterals .cart_totals>table tr.total .includes_tax .amount {
    font-size: 18px !important;
    color: #000 !important;
}

This should do the trick.

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

Dynamic stretching effects while scrolling using JavaScript and CSS

Wondering if there are any JavaScript libraries or functions that can add an elastic/rubber band effect to specific elements when scrolling. For example, when scrolling quickly and then stopping suddenly, these elements would move out of place briefly befo ...

Tips for validating user input in AngularJS without using a form tag

Within a popup, I am displaying HTML content that has been copied from another div and shown in the popup. I need to validate this input field to ensure it is required, and display an error message below the input box. <!-- HTML code for changing zip c ...

organizing div class tiles in a vertical layout

I am facing a challenge in arranging the class named tile along with some additional elements to create a vertical list. The tiles vary in size and are not displaying vertically as intended. I also want to add text next to each tile without disrupting the ...

Ensure that the top border is aligned perfectly with the top of the page while keeping the text in its

I am a beginner student working on my very first project, so I appreciate your patience as I learn. Currently, I am trying to add a hover effect to the navigation bar links where a blue bar appears at the top of the link and touches the border of the page ...

How come the background image is not being applied using ::before?

My goal is to have a background image for the body with content placed on top of it. I am using CSS to set the background image through the body selector with the ::before pseudo-element. However, the image does not show up in the background without settin ...

How can we make the border-bottom for all list items (connection) function effectively?

After creating an unsorted list with list items, here is how it appears: <ul id="mylist"> <li> <input type="checkbox" id="[[Array]]" /> <label for="[[Array]]"><img src="images/[[ArrayImage]]"/></label> <div cl ...

Remove the item from the shopping cart if it is already in the Woocommerce system

There are different ways to clear the shopping cart when a new product is added. function emptyCartOnNewProduct( $cart_item_data, $product_id, $variation_id ) { global $woocommerce; $woocommerce->cart->empty_cart(); } However, I am only intereste ...

Incorrect placement of navigation in HTML/CSS dimensions

I'm working on my new portfolio and I've run into an issue with the navigation placement that I can't seem to solve. The text should be aligned with the lines on the sides, but instead it's shifted right and down. I'm struggling t ...

Ways to incorporate CSS design into Django input pop-up when the input is invalid

Looking to enhance the error message styling for a Django Form CharField when an incorrect length is entered, using CSS (Bootstrap classes preferred). I have successfully styled the text input itself (check the attrs section in the code), but I am unsure ...

Using CSS3 translate will result in children becoming relatively positioned

I am facing an issue with a sidebar that contains 2 divs. <div class="sectionsContainer clearfix"><-- Sidebar --> <div class="leftSection pull-left"> <p>Maor</p> </div> <div class="rightSection pu ...

How do I stop a line break from being added when closing a div tag?

Can you help me understand why the HTML code below is causing a line break after the div closing tag? And do you have any suggestions on how to prevent this line break so that it resembles a simple table layout? <p> <div style="width:200px&q ...

Achieve vertical text centering without the need for extra HTML code

Is there a way to vertically center text without using a container element, while still maintaining responsiveness? EDIT: I only have knowledge of the height of the h3 element and nothing else. The content will be displayed below, such as etc</p> ...

Showing child elements within a div using AngularJS

I am eager to create a straightforward AngularJS website that will showcase an initially hidden HTML element along with all of its children. Below is the HTML structure snippet I plan to use: <div class="hiddenStuff"> <h3>Game Over</h3&g ...

Customizing Background Image Opacity in MuiCssBaseline

I recently tried to set a background image for my demo application built with React, Next, and Material-UI. In my _app.js file, I included the following code: import React from 'react'; import { ThemeProvider } from '@material-ui/core/styles ...

CSS - font with dashed color styling

I need to display text on a webpage that has the following appearance: https://i.sstatic.net/vFA2A.png The font should have two alternating colors. Can this be achieved? The solution needs to be compatible with all web browsers. ...

Creating a visually appealing table in HTML or experimenting with a tableless design can greatly enhance your website's layout

Presenting data with headers in HTML has been a challenge for me. Below is the portion of the header I'm having difficulty with. Although I've successfully rotated the text, the issue I'm facing now is text overlap. Here's the code st ...

Select two images and simultaneously move them around on a webpage

Looking for a way to replicate the functionality shown in this image - when I drag one map, another one should automatically move as well. Additionally, the downtown map needs to be contained within the mobile frame. The two map images are located in sep ...

Enhance your FullCalendar experience with beautifully crafted tooltips

How do I implement a tooltip design on a full calendar? I need the tooltip to appear when hovering over an event in the calendar. Any assistance with this issue would be greatly appreciated. Thanks in advance! //reference <link rel="stylesheet"hr ...

Having issues with Tailwind colors not dynamically updating in brackets

Recently, I encountered an issue where my custom colors were not working when implemented dynamically. Below, you'll find two sets of codes and screenshots: one with the dynamic code and output, and another with the static code and output. I prefer n ...

When I access the website through the LinkedIn app, my CSS styles are getting jumbled up

Is there a way to resolve the problem I'm facing with CSS when accessing the site through the LinkedIn app on iPhone? The issues don't occur on Android. If anyone has a solution, please share. Thank you :) Click Here ...