I'm very new to HTML/CSS and I'm trying to display some text as like 50% transparent. So far I have the HTML to display the text with full opacity
<html><font color=\"black\" face=\"arial\" size=\"4\">THIS IS MY TEXT</font></html>
However, I'm not sure how to change its opacity. I've tried looking online, but I'm not sure exactly what to do with the code I find.
What about the css
opacity
attribute?0
to1
values.But then you probably need to use a more explicit dom element than "font". For instance:
As an additional information I would of course suggest you use CSS declarations outside of your html elements, but as well try to use the font css style instead of the font html tag.
For cross browser css3 styles generator, have a look at http://css3please.com/
try to play around with
mix-blend-mode: multiply;
MDN
tutorial