Answers for "how to change border color in html"

10

border color css

border: 1px solid #000000;
Posted by: Guest on December-06-2020
6

border color css

border: 1px;
border-color: #3581fc;
Posted by: Guest on October-06-2020
0

javascript for border color

var getColor = prompt("Choose your color ", "Enter the  color ");
 var color;
 var el = document.getElementById("color");
 el.innerHTML = "Whatever paragraph message.";
 if (getColor =="Yellow" || getColor =="yellow" || getColor =="YELLOW"){
     color = "#FFFF66";
     el.style.borderColor = color;
 }
Posted by: Guest on April-27-2020
0

border-color

div {border-color: coral;}
Posted by: Guest on May-07-2021
10

border color html

<p style="color: #ffffff;">Lorem ipsum...</p>				<!-- text -->
<p style="background-color: red;">Lorem ipsum...</p>		<!-- background -->
<h1 style="border: 2px solid #00ff00;">Lorem ipsum...</h1>	<!-- border -->

<!-- 3 ways to define colors -->
<h1 style="background-color: rgb(255, 99, 71);">Lorem ipsum...</h1>
<h1 style="background-color: #ff6347;">Lorem ipsum...</h1>
<h1 style="background-color: hsl(9, 100%, 64%);">Lorem ipsum...</h1>
Posted by: Guest on September-05-2021
0

javascript for border color

.borders{
    background-color:#00ffff;
    border-color:#000000;
    border-width:2px;
    border-style:solid;
}
Posted by: Guest on April-27-2020

Code answers related to "how to change border color in html"

Browse Popular Code Answers by Language