I have body
with a background-image
and a div
with background-color
as white.
I'm trying to make the text on that div
(which is called #content
) see through, so that the text is like a window to the background of the site.
Here's an example:
Choose Window > Effects and, if necessary, open the Effects panel menu and choose Show Options. The Effects panel options are also available in the Effects dialog box (select an object and choose Object > Effects > Transparency) and, in simplified form, on the Control panel.
Click anywhere on your image and type the text you want. With your text written out, double click on your text layer to open the Layer Style Panel. Under the 'Blending Options' tab, bring the Fill Opacity down to 0%. This will make your text completely invisible.
What you're trying to achieve is possible with CSS. With background-clip: text
, you can use a background for the text but you will have to align it with the background of the page.
Here's an example:
body {
background: url(http://o.homedsgn.com/wp-content/uploads/2011/04/NYC-at-Night-54.jpg) no-repeat;
margin: 10px;
background-position: center top;
}
h1 {
background-color: rgba(255, 255, 255, 0.7);
overflow: hidden;
text-align: center;
padding: 10px;
font-weight: bold;
font-family: arial;
font-size: 83px;
margin: 450px 0px 0px 0px;
}
span {
background: url(http://o.homedsgn.com/wp-content/uploads/2011/04/NYC-at-Night-54.jpg) no-repeat;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
display: block;
background-position: center -450px;
}
<h1><span>NEW YORK</span></h1>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With