Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to create a design similar to this image text with CSS

I want to style this text exactly similar to attached image, tried using text-shadow but not get exact similar results. I want to add a border on shadowed text. Please provide a better a solution!

Thanks

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

body {
  background-color: black;
}

.stroke-shadow {
  color: white;
  text-shadow: -7px -7px 0px #FF29ED;
}

p {
  font-weight: 700;
  font-size: 200px;
}
<p class="stroke-shadow">CREATE</p>

>Solution :

One solution for CSS only is to use the :before pseudo element. However, this would require adding the specific string in the content rule.

body {
  background-color: black;
}

.stroke-shadow {
  color: white;

  position: relative
}

.stroke-shadow:before {
  content: "CREATE";
  color: black;
  
  -webkit-text-stroke: 2px #FF29ED;
  position: absolute;
  z-index: -1;
  top: -5px;
  left: -5px;
}


p {
  font-weight: 700;
  font-size: 200px;
}
<p class="stroke-shadow">CREATE</p>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading