Contents

Bendy Corners

Contents
Updated on 2021-02-13

Ooh, Ahh, Just a little bit.
Ooh, Aah, A little bit more!

Gina-G

So I wanted that little bit more eye-candy on my site. To fix this, I made a very minor tweak to my CSS (Cascading Style Sheet) code – CSS is what changes web page code into something visually appealing.

The change makes use of a very new edition of CSS called version 3, which not all web browsers support yet. Due to this, you may not see the “bendy corners” that I’ve implemented on the main page (see the top left of the welcome note: if it’s square then you don’t have a recent-enough web browser to see the effect). To use the effect in your own pages, the css code follows:

1
2
3
4
5
6
border-radius: 25px 6px;
-moz-border-radius: 25px 6px;
-webkit-border-top-left-radius: 25px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-right-radius: 25px;
-webkit-border-bottom-left-radius: 6px;

The reason for the -moz and -webkit versions, is due to the fact that mozilla and apple (respectively) implemented their versions before the official standard was “ratified”. [turned into a rat, I’m assuming that means.] Newer versions of both browsers will move over to the official border-radius symantic. Opera supports this feature using the propper code out-of-the-box, IE8 beta supports it, Firefox supports it in version 3 and above using the -moz prefix, Safari supports it using the -webkit prefix, and finally Konqueror does NOT support it yet.

Lucy is a prominent member of the WordPress, Ubuntu, WSL, and Snapcraft communities. She currently sits on the Ubuntu Membership Board and is a former Microsoft MVP.
Lucy is a prominent member of the WordPress, Ubuntu, WSL, and Snapcraft communities. She currently sits on the Ubuntu Membership Board and is a former Microsoft MVP.