How to add or remove left, right, top or bottom border in CSS
<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.
No comments:
Post a Comment