shape-margin ගුණය
shape-margin ගුණය shape-outside ගුණයෙන් අර්ථ දක්වා ඇති හැඩය වටා ඉඩකඩ යොදයි.
මෙය හැඩය සහ එය වටා ගලා යන පාඨය අතර දුර වැඩි කිරීමට ඉඩ සලසයි.
වාක්ය රචනය
තෝරන්නා {
shape-margin: අගය;
}
උදාහරණය
20px ඉඩකඩක් සහිත ගෝලය:
<div class="shape"></div>
<p>
some long text
</p>
.shape {
width: 150px;
height: 150px;
float: left;
shape-outside: circle(50%);
shape-margin: 10px;
clip-path: circle(50%);
background: #3498db;
}
p {
width: 500px;
text-align: justify;
}
:
උදාහරණය
1em ඉඩකඩක් සහිත ත්රිකෝණය:
<div class="shape"></div>
<p>
some long text
</p>
.shape {
width: 150px;
height: 150px;
float: left;
shape-outside: polygon(0% 0%, 100% 50%, 0% 100%);
shape-margin: 1em;
clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
background: #e74c3c;
}
p {
width: 500px;
text-align: justify;
}
:
මේවාත් බලන්න
-
shape-outsideගුණය,
හීමක්රමණය සඳහා හැඩය අර්ථ දක්වන -
clip-pathගුණය,
අංගයේ දෘශ්යමාන හැඩය නිර්මාණය කරන -
floatගුණය,
shape-margin වැඩ කිරීමට අවශ්ය