How to use border property in external CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to use border property in external CSS?

I tried using border property in internal CSS but it turns out I am not getting the syntax properly. So please if anyone can help! Thank you.

4th Jul 2019, 2:32 PM
Ansh Pujara
Ansh Pujara - avatar
3 Answers
+ 1
I recommend learning HTML first then CSS. Html builds the structure. CSS add the styles. The proper syntax for the border property is as follows. CSS Syntax border: border-width border-style border-color example: p { border: 1px solid red; }
4th Jul 2019, 9:08 PM
Chris Coder
Chris Coder - avatar
+ 1
Thank you Chris C.
4th Jul 2019, 9:10 PM
Ansh Pujara
Ansh Pujara - avatar
+ 1
My pleasure 😊
4th Jul 2019, 9:17 PM
Chris Coder
Chris Coder - avatar