opacity
applies to the whole element, so if you have a background, border or other effects on that element, those will also become transparent. If you only want the text to be transparent, use rgba
.
#foo { color: #000; /* Fallback for older browsers */ color: rgba(0, 0, 0, 0.5); font-size: 16pt; font-family: Arial, sans-serif; }
Also, steer far, far away from <font>
. We have CSS for that now.
Related Posts:
- CSS Background Opacity [duplicate]
- CSS Background Opacity [duplicate]
- Transparent CSS background color
- How to darken a background using CSS?
- right align an image using CSS HTML
- How to make blinking/flashing text with CSS 3
- Making text background transparent but not text itself
- How am I supposed to use index.html?
- Failed to load resource: the server responded with a status of 404 (Not Found) css
- CSS background-image-opacity?
- Resize image proportionally with CSS?
- How do I vertically align text in a div?
- Embed image in a
- Can I have an onclick effect in CSS?
- How to style a checkbox using CSS
- CSS Background Image Not Displaying
- Is there a color code for transparent in HTML?
- CSS: Moving the text down a few pixels but keeping the background still?
- Fix footer to bottom of page
- How to position text over an image in css
- HTML Width Percentage
- How can I make a CSS glass/blur effect work for an overlay?
- css transition opacity fade background
- Text-decoration: none not working
- Should I use px or rem value units in my CSS?
- Flexbox: center horizontally and vertically
- Maintain the aspect ratio of a div with CSS
- Why are my CSS3 media queries not working on mobile devices?
- jQuery.addClass not working
- what’s the easiest way to put space between 2 side-by-side buttons in asp.net
- Vertically centering a div inside another div
- Does bootstrap 4 have a built in horizontal divider?
- How to move image with css/html
- How can I set the image opacity for body background
- How to style the option of an html “select” element?
- How to word wrap text in HTML?
- CSS pick a random color from array
- How to center HTML5 Videos?
- Align DIV’s to bottom or baseline
- Center a DIV horizontally and vertically
- how to overwrite css style
- How can I move this text up using CSS?
- Target a css class inside another css class
- CSS float right not working correctly
- How can I vertically align elements in a div?
- How to give spacing between buttons using bootstrap
- CSS hover effect is not working on my code
- Space between two rows in a table?
- How to center HTML5 Videos?
- How do I style a dropdown with only CSS?
- Make a div fill the height of the remaining screen space
- vertical divider between two columns in bootstrap
- Why an inline “background-image” style doesn’t work in Chrome 10 and Internet Explorer 8?
- How to center a navigation bar with CSS or HTML?
- How to add image that is on my computer to a site in css or html?
- My CSS won’t link to my HTML file
- How to use PHP inside css file
- Table fixed header and scrollable body
- css display table cell requires percentage width
- Setting a max character length in CSS
- How to write a:hover in inline CSS?
- CSS Resize/Zoom-In effect on Image while keeping Dimensions
- How to draw a trapezium/trapezoid with css3?
- Display Images Inline via CSS
- How to exclude particular class name in CSS selector?
- Text wrapping around a div
- Why CSS3 Animation is not working?
- HTML/CSS–Creating a banner/header
- How to create a text box in PHP to output data
- Change hover color on a button with Bootstrap customization
- Alternate table row color using CSS?
- Set textarea width to 100% in bootstrap modal
- How to change the background colour’s opacity in CSS
- Can I apply a CSS style to an element name?
- Using margin / padding to space span tag from the rest of the p tag
- How can I make a div not larger than its contents?
- position fixed is not working
- Place a button right aligned
- How to make canvas responsive
- td widths, not working?
- raw code vs wordpress
- Adding HTML to the Header, Screws up in IE7
- Write text below a specific part of a sentence
- How to create fa-bars animated menu
- Changing CSS FilePath for All Pages
- Simple way to add custom class and ids to individual Gutenberg blocks
- Main menu effect visited
- WordPress is not displaying CSS file
- Change class names dynamically added to html elements by wordpress
- Hide Tab Titles from Tabs Block
- WordPress footer always at the bottom of the screen-page
- Clickable Text To Replace Radio buttons
- How to remove the specific class
- HTML not resizing
- Fonts are parsed in one way but rendered in a different way
- Divi Theme HTML code is different in View Page Source than in the Firefox Inspector
- How would I add this code to a single WordPress page?
- WP theme update causes child theme CSS problems
- How do I hide a specific div class inside ? [closed]
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?