How do you make a border | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do you make a border

How do you make a border around writing on HTML...

28th Aug 2018, 9:49 PM
Little Cupcake
Little Cupcake - avatar
6 Answers
29th Aug 2018, 1:16 AM
Vanumu Satish Kumar
Vanumu Satish Kumar - avatar
+ 4
You could use inline CSS in your div: <div id=ā€œdiv_nameā€ style=ā€œborder-width:1px; border-style:solid; border-color:blackā€> </div> or (shorthand): <div id=ā€œdiv_nameā€ style=ā€œborder:1px solid blackā€> </div> Of course if your object is a paragraph or span element, you would replace <div> with <p> or <span>.
28th Aug 2018, 10:57 PM
NULL
NULL - avatar
+ 2
use css property for border to any element div span image many more
29th Aug 2018, 7:43 AM
Aarav Raj
Aarav Raj - avatar
+ 2
ok
29th Aug 2018, 8:55 AM
Little Cupcake
Little Cupcake - avatar
+ 2
If you wanna make a border around your image without CSS!! my simple code!!šŸ˜‚šŸ˜‚ https://code.sololearn.com/WUe32R14OT4F/?ref=app
29th Aug 2018, 1:17 PM
AL Araf
AL Araf - avatar
+ 1
you can use the external css for example selector{border:2px dotted black}
29th Aug 2018, 1:41 PM
Get na