0
i tried adding a border to a text but it did not show the border
please help
4 odpowiedzi
0
Show your attempt
And use this syntax if possible in css
Border:47px. Here 47 px is a random value u can change it also
0
You can not set a border to your text, but there is a way to set a stroke:
-webkit-text-stroke: 1px black;
0
This is what to do and I forget after many year sometimes too.
In html
<p class="solid"> My border </p>
In css
p.solid {
border-style: solid;
color: blue;
}
Go to m3schools for more on this.
I often forget you need the border style even when solid.
0
Thanks saints this helped a lot