A straightforward way to create a shape is to use a value from the CSS Box Model. This article explains how to do this.
The box values allowable as a shape value are:
content-boxpadding-boxborder-boxmargin-box
The border-radius values are also supported, this means that you can have something in your page with a curved border, and your shape can follow the created shape.