本邦初公開!!
画像付き文章の画像を切り抜く(clip)するためのハウツーです。
様々な形に切り抜くことが可能なのですが今回はMDNのサイトを参考にして『丸』と『ひし形』を取り上げます。
ここでは同じように見えていますが、実際には、アップロードする画像の縦横比によって、形状は異なります。
面白味はありますが、画像の形を揃えたいのであれば、同じ縦横比の画像を利用することをお勧めします。
参考サイト:MDN Web Docs
SPECIAL COFFEE
We offer special coffee roasted in-house. Enjoy the unique taste and aroma.
<style>
.j-textWithImage img{
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
</style>
SWEETS
Our sweets are made by a pastry chef who trained at a top-class restaurant in France to make sweets that go well with coffee.
<style>
.j-textWithImage img{
clip-path: circle(50%);
}
</style>
設置個所:管理メニュー > 基本設定 > ヘッダー編集 > 各ページ (JIMDO有料バージョン)
Location:Menu>Setting>Edit Head > PAGES(Paid version)