As shown above, can I give a radius only to the upper parts, and not from the bottom, and sometimes from the bottom to the top?
And is there any idea to give the border radius to just one corner?
Like border-radius:top-left top-right bottom-right bottom-left ,
border-radius:top-left top-right bottom-right bottom-left
div{ width: 100px; height: 30px; background: black; border-radius: 8px 8px 0 0 }
Demo
Use a border radius, for example:
border-radius: 5px 5px 5px 5px;
Or, for the upper left border, you can be more specific:
border-top-left-radius: 5px;
Here is CSS for rounded corners only on divs with class box:
.box { border-radius: 5px 5px 0px 0px; }
You may also find this useful: http://css3generator.com/
Edit: Apparently you no longer need the webkit prefix!
Source: https://habr.com/ru/post/951780/More articles:PowerShell Command History - powershellConvert ActionScript to Javascript - javascriptMysterious `1 in XAML Datatype - genericsRounded corners only at some corners in css - cssHow to find duplicate email in mysql table - mysqlSQL Server 2008 Error - XML โโParsing: Too much memory required to parse a document - c #Using the sprite frame cache in cocos2d - the right way - objective-cjson_encode produces JSON_ERROR_UTF8 from MSSQL-SELECT - jsonContinuous assignment would not seem to work - vhdlPrinting python os.urandom output on terminal - pythonAll Articles