This tool will help you to circle-clip a div
element and place an image on it as a background-image
.
How to Use
- Edit the
CSS
part. You can add/edit/remove the properties and the result can be observed right away.
Please don't change.my_object
keyword class in the CSS below.
You can change it afterward on your own page. - You can use external URL as the
background-image
source. - If you wanna use local file, convert that first into
base64 URI
with this tool. Then copy and paste thebase64
into thebackground-image: url([paste here])
.
But because it can be a very lengthy group of characters, especially for graphic or photo, it's really not recommended to be used in here.
Please use external URL instead. - Click "Reset" button to revert it to its original state.
- Click "Select" button or double click the
textarea
to select theCSS
. - Click "Top" button to scroll up to the "Result" section.
- Click the
HTML
element text to select it.
Placement
On your HTML
page, the CSS
will need to be wrapped with <style>
and </style>
.
Place the styling (CSS
) on top of the element.
This is a browser (local) application.
Have fun!
Result
CSS
HTML element
Trimmer
The CSS
from this tool can be compacted into a single line using this CSS
Trimmer.
Tutorial
Related post on Monkey Raptor about circle-clipping with CSS
.