'border-top-color' Example : border top color « CSS « HTML / CSS






'border-top-color' Example

 
    
<html>
<head>
<style>
.style1 { 
    border:5px solid #cccccc; 
    border-top-color:red; 
    font-family:verdana; 
    font-weight:bold
}
.style2 { 
    border:"none"; 
    font-family:verdana; 
    font-weight:bold 
}
</style>
</head>
<body>
Move your mouse in to see the style change.
<div style="width:230; 
            height:100; 
            background-color:beige"
     onmouseover="this.className='style1'"
     onmouseout="this.className='style2'">This is a div element.
</div>
</body>
</html>

    
      
        
  








Related examples in the same category

1.Set border top color to black