How to put black borders in the divisions?? | Sololearn: Learn to code for FREE!

+7

How to put black borders in the divisions??

https://code.sololearn.com/WHSVqhw98Vni/?ref=app What all can I do to make it better??

5/28/2020 12:49:31 PM

Namit Jain

7 Answers

New Answer

+4

It should be either this way body div{ border:3px solid black; } Or this way body{ } div{ border:3px solid black; }

+4

In css.. Write . section { Border: 4px solid black; }

+2

Yes this is also css you have used in your code style = "color:blue;background:lightgreen but this is inline css place that div tag outside body

+2

Abhay Thank you so much!!!!!!

+1

div{ border:3px solid black; } Does this helps?

+1

Is this css??

+1

No its not doing anything... Do I have to change anything in my html code to make this work