Border outside div tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Border outside div tag?

Hey look at this code.. I want to make a box in the div tag where "yay" is written how am i able to do that with css? Please copy the code and then make something like this and share in comments... So i can understand easily https://code.sololearn.com/WlX7t883o01B/?ref=app

12th Sep 2020, 12:31 PM
simple boii
simple boii - avatar
2 Answers
+ 4
Just add this line of code into your CSS .paragraph1{ border: 2px solid; } You can select any thickness.. I have taken 2 px. you can select any other attribute instead of solid.
12th Sep 2020, 12:45 PM
Charitra
Charitra - avatar
+ 2
Thank you Charitra Agarwal and ben hur sia that was helpful...
12th Sep 2020, 3:31 PM
simple boii
simple boii - avatar