How to fix html border corner slope with css? -
You can access the following code via this link:
My CSS code:
.custom_content {display: block; Width: 200px; Height: 30px; Margin: 5 px 0; Padding: 0; Limit: 1px solid # 000000; }. Left-border-red (border-left: 5px solid red;}
My HTML code:
: Please zoom into the image to see the top left and bottom left slopes on the rectangle.
Problem 1: The top left corner is slope, I want to fix it.
Problem 2: There is a slope in the bottom left corner and I want to fix it.
Sara Sh: How can I fix the left left and bottom left slope for my output? I want to put the outer black border and the inner red border at the same time. But I do not want any slope for any corner.
instead of border-left, you can :
or :
pseudo-elements And after style
.left-border-red: {content: before ';; border-left: 5px solid red; height: 100%; width: 0; display area; Swim left; }
Comments
Post a Comment