EDIT: A similar post has already been made: Text Stroke (-webkit-text-stroke) css Problem
I am having a very strange problem with a text on a website I am working on. This was not happening before, and I did not change anything, but one day I loaded the website and noticed the text stroke I applied was going through itself (see image). I am using Tailwind CSS. Here is the code for the element
The letter's a and e are cutting through themselves.
Code for the element:
<h1 className="text-7xl text-white text-stroke-3 text-center mt-5 font-bold">
How are you feeling today?
</h1>
Also this text-stroke is a custom CSS property that I defined as follows:
.text-stroke-3 {
-webkit-text-stroke: 3px black;
}
I tried changing the h1 to a paragraph and changing the font of the text. I also tried using
<b></b>
to encapsulate the text instead of font-bold
.
None of these worked.