CSS Global Class with a Text Shadow Override

Currently, my text shadow is being overridden throughout my HTML / CSS3 Document.

The following tags are causing the issue:

html *,
#footerTextdetail {
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7), 2px 2px 2px (0, 0, 0, 0.3) !important;
}

I am struggling to find where the override is coming from and how to fix it. Unfortunately, the source of the override is not documented in Google Chrome Inspection Tool Update Beta CSS/XGS.

Answer №1

To prevent overrides, consider eliminating the use of inline CSS within your HTML markup

#footerTextDetail {
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7), 2px 2px 2px rgba(0, 0, 0, 0.3) !important;
}

Answer №2

When utilizing the universal selector(*), you are selecting all elements within the <html> tag...

By using html *, you are essentially targeting every element on the page, hence why they are all receiving the text-shadow. It is recommended to remove this selector for a more specific styling approach...

Additionally, the value of your text-shadow property is invalid. The second text-shadow should include an rgba value. Avoid using the !important rule if possible...

#footerTextdetail {
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7), 2px 2px 2px rgba(0, 0, 0, 0.3);
}

Answer №3

#footerTextdetail {
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6), 2px 2px 2px rgba(0, 0, 0, 0.4) !important;
}

Update your script to eliminate HTML tags *

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

The full width of the Html body in tailwindcss is not being completely utilized

I am new to tailwindcss and encountering a problem. Please take a look at the screenshots provided; the background color is not being applied in the navbar and the HTML body is not displaying full width on medium and small screens. What's perplexing ...

Height and Width Dilemma in Visuals

Can you help with changing image resolution using jQuery? I have a background image applied to the body using CSS/PHP. My goal is to make the image fill the entire window by applying the screen height and width, without using repeat style. The code I am c ...

`Having difficulty keeping an element in place on a webpage using HTML/CSS`

Struggling to create a segmented circle using HTML/CSS? Are you having issues with the left and bottom parts of the circle not staying fixed when the screen resolution changes? Here is the current code snippet: @import url('https://fonts.googleapis ...

Looking for ways to locate encoded HTML values in chrome?

Referenced from Microsoft Docs In MVC, the Razor engine automatically encodes all output coming from variables. For example, consider the following razor view: @{ var untrustedInput = "<"123">"; } @untrustedInput In this scenario, ...

Loss of Image Quality when Zooming out Canvas

I have developed a code to implement zoom-in and zoom-out functionality for a canvas image. However, I am facing an issue where the quality of the image deteriorates when zoomed more than once. I am using the canvas2image plugin to convert the canvas into ...

Ways to center text vertically alongside an image

<ion-view view-title="个人信息"> <ion-content> <style> .user-details { display: flex; align-items: center; justify-content: space-between; height: 80px; } .us ...

Using JQUERY to move a Div back and forth inside another Div

Seeking a solution to make a DIV element move back and forth within the boundaries of a container DIV. At present, it keeps sliding off to the right instead of resetting and moving back to the left. It is desired that the resizing be dynamic based on the ...

How can I limit user access to web content in Django with a daily usage allowance?

I am the administrator of an online pricing website built with Django. My goal now is to limit access to price information for non-VIP users. I want to implement a system where non-VIP users can only view prices on my website up to 3 times per day after l ...

Utilizing pop-up info boxes

After thoroughly reviewing the documentation on Imagemapster's website and browsing several posts, I am still struggling to get the tooltips working correctly. I attempted to share my HTML and JS code on jsfiddle.com without success, so I have provide ...

Troubleshooting Flexbox in Internet Explorer 11: Issue with 100% width not functioning properly within nested flex containers with a 'column'

Is there a way to ensure that an image within nested flex containers has a width of 100% in IE11, even when the container has flex-direction: column? I've tried setting the width to 100% with a max-width of calc(100% - 0.1px), but unfortunately it doe ...

Center the navbar menus at the bottom

Trying to position two menus on a webpage can be challenging. One needs to show at the center bottom, while the other should appear in the top right corner. When attempting to achieve this layout, it's important to ensure that both menus are displayed ...

Having trouble toggling the dropdown submenu feature in a Vuejs application?

.dropdown-submenu { position: relative; } .dropdown-submenu .dropdown-menu { top: 0; left: 100%; margin-top: -1px; } <div class="dropdown"> <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">Tutorial ...

Troubleshooting Flex alignment problem caused by Slick Carousel Slider conflicting with Bootstrap

Today marks the beginning of my question asking journey. After dedicating almost a day to solving this, I humbly seek your assistance! :D My current challenge involves using Slick's carousel alongside Bootstrap. Whenever I add the 'slick-slider& ...

Detecting the physical screen size based on the user agent in PHP and JavaScript

Is it possible to accurately detect the screen size of mobile browsers using both javascript and php? Given how mobile devices come in all shapes and sizes these days, relying solely on pixels may not be enough. I'm looking for a method that can speci ...

Ensure that the modal remains open in the event of a triggered keydown action, preventing it from automatically closing

I am currently toggling the visibility of some modals by adjusting their CSS properties. I would like them to remain displayed until there is no user interaction for a period of 3 seconds. Is there a way to achieve this using JavaScript? Preferably with Vu ...

Revamping database with PDO and HTML integration

Implementing a CMS system has streamlined the process for admin users to update website content without having to tinker with the code manually. Once logged in, admin users should be able to effortlessly add, delete, and edit content. While the add and de ...

Perform a function dynamically once a specific textfield is filled and continuously while filling another textfield

Imagine we have two text fields - one for a first name and one for a surname. As I type in the surname field after already filling out the first name, a function called sug() should provide suggestions or perform some action each time I add another letter ...

What is the process for establishing a unique parameter within an array?

I am working with an array and a counter that is synchronized with the elements of the array. What I am trying to achieve is a specific sequence as follows: When the counter hits x6, the first 5 items should be marked as false. When the counter reaches x1 ...

Looping through elements using jQuery in JavaScript

Is there a strange phenomenon happening with my variable in the HTML? I set it to "0", but it displays as "10" on the page. Despite using jQuery and JavaScript, the number stays static at "10" even after refreshing the page. I'm attempting to make th ...

When you utilize the overflow:hidden property in an inline-block list, you may notice some

Referring to this example: http://jsfiddle.net/CZk8L/4/ I'm puzzled by why the CSS style overflow:hidden is creating extra space at the bottom of the first li. Can anyone shed some light on this? This has been bothering me for hours, as I need the p ...