Get the App
SLTechnology News&Howtos  ›  Development  › 

How css makes elements have no rounded corners on the left

Shulou Source: shulou.com Published: 2022-06-02 07:20:25 10月02日 Update

This article introduces the knowledge of "how css makes elements without fillets on the left". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Method: 1, add the "border-bottom-left-radius:0;" style to the element, remove the fillet style in the lower right corner of the element; 2, add the "border-top-left-radius:0;" style to the element and remove the fillet style in the upper right corner of the element.

The operating environment of this tutorial: windows10 system, CSS3&&HTML5 version, Dell G3 computer.

How does css have no fillet on the left side of the element

In css, there is no fillet on the left side of the element through the border-bottom-left-radius and border-top-left-radius attributes, the border-top-left-radius attribute is used to set the fillet style of the upper-left corner of the element, and the border-bottom-left-radius attribute is used to set the fillet style of the lower-left corner of the element.

Just set these two values to 0 so that there is no fillet on the left side of the element.

Examples are as follows:

Div {background: darkcyan;width:200px;height:200px;border:2px solid darkslategray;border-radius:30px;border-top-left-radius:0;border-bottom-left-radius:0;}

Output result:

This is the end of the content of "how css makes elements without rounded corners on the left". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Elements fillets styles attributes content more knowledge output practicality learning next two can pass dilemma actual upper left corner situation tutorials articles methods Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi vpn Xiaomi Linux MariaDB