I want to know the difference between border styles- ridge and groove. When i used them, i was not able to spot the difference between the two. I cannot upload the image since i have not reached level 10 to make it more clear. Here's the code:
border-style: groove ridge dashed groove;
ridge - Defines a 3D ridged border. The effect depends on the border-color value. inset - Defines a 3D inset border. The effect depends on the border-color value. outset - Defines a 3D outset border.
border-style: dotted solid double dashed; top border is dotted. right border is solid. bottom border is double. left border is dashed.
The border-style shorthand CSS property sets the line style for all four sides of an element's border.
The border-style property is a shorthand for the following CSS properties: CSS border-bottom-style Property: It s used to set the style of the bottom border of an element. CSS border-top-style Property: It is used to specify the style of the top border.
It's border shadow position:
Ridge: from top left
Groove: from bottom right
div {
padding: 10px;
margin: 10px;
float: left;
background-color: white;
}
.wrap {
background-color: #ffdddd;
}
#ridge {
border-width: 5px;
border-style: ridge;
margin-right: 1px;
}
#groove {
border-width: 5px;
border-style: groove;
margin-left: 1px;
}
<div class="wrap">
<div id="ridge">ridge</div>
<div id="groove">groove</div>
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With