Add the same color of the background to the paragraph and then invert with CSS:
div { background-color: #f00; } p { color: #f00; -webkit-filter: invert(100%); filter: invert(100%); }
<div> <p>inverted color</p> </div>
Related Posts:
- Change color of PNG image via CSS?
- Hex colors: Numeric representation for “transparent”?
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- Set line spacing
- Outline effect to text
- create a white rgba / CSS3
- Using CSS for a fade-in effect on page load
- Should you use rgba(0, 0, 0, 0) or rgba(255, 255, 255, 0) for transparency in CSS?
- Does bootstrap have builtin padding and margin classes?
- limitations of using @Html.EditorForModel
- Circle button css
- right align an image using CSS HTML
- CSS text-align: center; is not centering things
- CSS media queries: max-width OR max-height
- @font-face not working
- how to center an inline div using css?
- How to flip background image using CSS?
- What’s the difference between align-content and align-items?
- Slanted border using CSS
- Center HTML Input Text Field Placeholder
- creating a chevron in CSS
- Is there a “previous sibling” selector?
- How do you center a video using CSS
- How to set background color in jquery
- CSS – why doesn’t percentage height work? [duplicate]
- CSS Color Filter Overlay
- How to align this span to the right of the div?
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- Assign a Class to the Current “Tag” for Formatting
- Get list of registered or enqued styles? looking for filters or actions
- Use wp_enqueue_scripts, not wp_print_styles?
- Can’t get rid of minify after uninstalling W3 Total Cache [closed]
- How to solve ‘Eliminate render-blocking JavaScript and CSS in above-the-fold’ content for multiple files?
- wp_tag_cloud inline CSS
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- Change CSS when user is logged in
- is it possible to use post-type as part of a css selector in block editor stylesheet?
- How to change DASH-ICON color with CSS?
- Sticky navigation and the wpadminbar
- What controls responsiveness in WordPress?
- Add Post Status to Body Class
- Why does my dissappear?
- Accessing Style Sheet Comment Like WordPress
- Bootstrap in theme
- How to integrate my HTML and javascript into my child theme
- How to align full div [closed]
- Font Awesome icons disappearing [closed]
- How to change the full capitals font title of my WordPress Blog?
- How to add inline css code with background image in page html code?
- Header background image just stopped working
- Page layout is broken when viewing search results.
- Style file inclusion
- Change Header Image on Blog Post for Mobile View
- adding the_custom_logo(); to header
- How do I change the style of just a part of the tagline?
- Apply custom css for user role
- override a css style [closed]
- How to avoid repeating similar properties for all tds of a table in a wordpress post
- Loading bbPress CSS file only on forum directory
- Common page width? [closed]
- Override All CSS with Custom CSS on a Page by Page Basis
- padding not working
- Hide Some Fields of Post Submit box
- CSS properties in textarea in the Customizer
- New Styles Not Rendering On Mobile Phone and Tablet
- WordPress default theme CSS version problem and not loading
- Penscratch 2 – changing color of the main block
- How can customized CSS on WordPress highlight the blog title in white when it’s not intended?
- how to modify html on homepage (no home-page.php in my theme)
- Remove dashicons.min.css conditionally
- Remove Parent Style on Carousel
- Fonts are not applying
- how does additional css rendering work?
- Text Not Wrapping Around Right Floated Image [closed]
- header background color changed after drop & import database in phpmyadmin
- Css style removed but still showing via CDN even after clearing browser cache and purging all caches for site
- WordPress – Portfolio – Change number of items in a row
- Floated element floats into post content in IE, Safari, and Chrome
- I cannot make this position properly in WordPress [closed]
- How can I pass a variable from PHP to LESS?
- Large Unwanted Space at the Bottom of Blog Posts [closed]
- How to include backend buttons css on frontend?
- Create a body div using CSS [closed]
- vertical menu bar css
- After upload on server 404 on all pages, no css
- I need css code to divide my webpage sections into two columns
- Images at the same vertical position in multiple columns
- css .active dropdown selects all links
- Put CSS on TOP, how?
- I am trying to apply these CSS rules to x3 Post-ID’s but I can’t get it to work – any idea how I can?
- In which file can I find the custom CSS code I entered?
- Some times CSS not Applying
- CSS does not take effects and it doesn’t show in inspect [closed]
- Add Quicksand for mobile devices
- Hiding site title for Twentyfifteen sidebar on (responsive) desktop display size
- How to avoid problems caused by new block-library default CSS rules (wp 6.1.1)
- Grid problem on privew mode
- Disabling double vertical scrollbar and horizontal scrolling?
- Customize margin between paragraphs using the Gutenberg Style editor
- How to remove automatically added custom style tag?