CSS Image Border : img border « Tags « HTML / CSS






CSS Image Border

      




<html>
<head>
  <title>CSS Image Border</title>
  <style type="text/css">
    body{
        margin-left: .50in; 
        margin-top: .50in;
         color: white
    }

    img{
        border-color: white;
         border-style: inset;
      border-width: thick;
      }
  </style>
</head>

<body>
<img src="http://www.java2s.com/style/logo.png" alt="Java" height="300" width="240" />

</body>
</html>

   
    
    
    
    
  








Related examples in the same category

1.Set border to '6px double #666' for an image
2.Remove border from an image
3.img width: 300px; border: 6px double #666; background: #fff; padding: 4px; display:block;
4.a img width: 300px; border: 0; display: block;