0

Tell me how to change the color of the border. Background CSS

11th Oct 2020, 4:38 AM
(=•_•=)YUVRAJ🔥
(=•_•=)YUVRAJ🔥 - avatar
7 Antworten
+ 2
border: solid red;
11th Oct 2020, 4:47 AM
Chris Coder
Chris Coder - avatar
+ 2
If you mean changing background color of element in which you add border, just change the background of that element div { boder : 3px solid brown; background: grey ; }
11th Oct 2020, 6:13 AM
Twaatii
Twaatii - avatar
+ 2
/* CSS */ element{ border-color:red; border-width:2px; border-style:solid; } OR element{ border:2px solid red; } Both will give the same result If you want to change background color /* CSS */ element{ background-color:red; } where element is an HTML element
11th Oct 2020, 7:58 AM
Arnav Kumar [Less/Not Active]
Arnav Kumar [Less/Not Active] - avatar
+ 1
You asked how to change the color of the border. Do you also wish to change the background color? body { background-color: red; }
11th Oct 2020, 5:07 AM
Chris Coder
Chris Coder - avatar
0
Not working it just change the color of border or outline of border
11th Oct 2020, 4:50 AM
(=•_•=)YUVRAJ🔥
(=•_•=)YUVRAJ🔥 - avatar
0
Please share your code if you're still stuck. Thanks
11th Oct 2020, 6:45 AM
Chris Coder
Chris Coder - avatar
0
CSS3 > id/element/class{ Border: 2px solid grey; }
13th Oct 2020, 3:28 AM
Malan Kudakwashe Kapishe
Malan Kudakwashe Kapishe - avatar