Monday, 30 September 2013

How to add or remove left, right, top or bottom border in CSS


      How to add or remove left, right, top or bottom border in CSS

If You want to remove left, right, top, or bottom border use this CSS code


<html>
<body>
<style>
body { 
background: #F00;
}
#cont {
width: 300px; 
height: 200px;
background: #333
border: 3px solid #CFF;
border-top: none;
}
</style>
<div id="cont">
</div>
</body>
</html>

#Griffin

NOTE:

in "border-top: none;" You can replace "top" with "left, right and bottom". You can also use "hidden" instead "none" .
DO NOT ADD THE QUOTES.