Search
 
SCRIPT & CODE EXAMPLE
 

CSS

put an border around an text in css

text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
Comment

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>
Comment

border for text in html

/*All types of border*/
p.dotted {border-style: dotted;}
p.dashed {border-style: dashed;}
p.solid {border-style: solid;}
p.double {border-style: double;}
p.groove {border-style: groove;}
p.ridge {border-style: ridge;}
p.inset {border-style: inset;}
p.outset {border-style: outset;}
p.none {border-style: none;}
p.hidden {border-style: hidden;}
p.mix {border-style: dotted dashed solid double;}
Comment

how to write text on div border in html

<form>
<fieldset>
  <legend>Enter the details below</legend>
  <!--Inputs or anything-->
</fieldset>
</form>
Comment

PREVIOUS NEXT
Code Example
Css :: red css color codes 
Css :: @keyframes 
Css :: css overflow elipsis 
Css :: scale up and scale down animation in css 
Css :: progress bar color change css 
Css :: set margin to none inside print 
Css :: margin not working on inline elements 
Css :: what does clearfix for floats do in css 
Css :: soup css selector 
Css :: background repeat space 
Css :: putting picture shaddow in css 
Css :: font gap css 
Css :: ie11 flex 1 
Css :: background clip text 
Css :: outside padding css 
Css :: css animate border bottom left to right 
Css :: how to justify text in css 
Css :: border image css 
Css :: text flow top to bottom 
Css :: image on top of image css 
Css :: make img tag take all div space 
Css :: css conver innertext to html using css 
Css :: jquery add external css to head 
Css :: Disable text selection/highlight 
Css :: css overwriting styles 
Css :: html css navbar with dropdown 
Css :: add image under header html 
Css :: force css style in angular 
Css :: sass import variable from another file 
Css :: background image opacity css 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =