Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I added the text gradient using CSS but how can I remove the top border of the gradient.

<div class="col-md-4">
  <ul class="main-menu-links main-menu">
   <li><a (click)="navigateToHome()">+ HOME</a></li>
  </ul>
</div>

i have put in <a> tag

 background: linear-gradient(to right, #ff4900 0%, #ec00c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 30px;`

enter image description here

when I remove

 background: linear-gradient(to right, #ff4900 0%, #ec00c4 100%);
 -webkit-text-fill-color: transparent;

then it will remove gradient as well border to

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
314 views
Welcome To Ask or Share your Answers For Others

1 Answer

Use this in your tag in the style sheet

a { border-top: none; }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...