BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> openElement General Discussion
  New Posts New Posts RSS Feed - background-clip: text
  FAQ FAQ  Forum Search   Register Register  Login Login

Topic Closedbackground-clip: text

 Post Reply Post Reply
Author
Message
greaseandmetal View Drop Down
Newbie
Newbie


Joined: Jan 27 2021
Status: Offline
Points: 5
Direct Link To This Post Topic: background-clip: text
    Posted: Jan 27 2021 at 2:14am
I'm trying to use background-clip: text to make my text show a background through it rather than a solid color.  The example works if I just create and HTML block and use <div class="bgtext"> but not if I set an element's Custom Classes in the properties to bgtext.

.bgtext {
font-size: 70px;
  display: inline-block;
  
  line-height: 0.9;
  padding: 20px;
  
  background: radial-gradient(
    circle farthest-corner at center center,
    white,
    #111
  ) no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


This effect is so cool, I wish i could make it work.
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6209
Direct Link To This Post Posted: Jan 27 2021 at 3:03am
Put a multiline text block on your page

Add the custom class to the content


Put your css code into a CSS code block

The effect will not display in the working area but it will show when the page is displayed



Edited by Hobby001 - Jan 27 2021 at 3:05am
Back to Top
greaseandmetal View Drop Down
Newbie
Newbie


Joined: Jan 27 2021
Status: Offline
Points: 5
Direct Link To This Post Posted: Jan 27 2021 at 4:22am
Thank you so much!  The error I was making was I didn't click the "..." and put the class name into the right spot.  I was just typing it into the box on the properties tab. Big smile
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.