Answers for "how to add border to text in css"

2

how to make border for letters in css

h1 {
    /* 1 pixel black shadow to left, top, right and bottom */
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;

    font-family: sans; color: yellow;
}
Posted by: Guest on June-06-2020
14

text border css

h1 {
  -webkit-text-stroke: 1px black;
}
Posted by: Guest on April-08-2020
1

css text color border

h1 {
  text-shadow: 1px 1px #ffffff;
}
Posted by: Guest on December-03-2019
1

how to make border for letters in css

h1 {
    -webkit-text-stroke: 2px black; /* width and color */

    font-family: sans; color: yellow;
}
Posted by: Guest on June-06-2020
0

how to add a border around text in html

<p style="border:3px; border-style:solid; border-color:#FF0000; padding: 1em;">
  First example with text surrounded by a red border.<br>This example also has multiple lines.
</p>
Posted by: Guest on July-19-2020
1

css text border

p{
  border: 1px solid #f00;
  /* 
    ShortHand 
    border: border-width border-style border-color
  */
}
Posted by: Guest on June-14-2021

Browse Popular Code Answers by Language