style marginBottom প্রতিশব্দ
- পূর্ববর্তী পৃষ্ঠা margin
- পরবর্তী পৃষ্ঠা marginLeft
- একত্রিত স্তরে ফিরে যান HTML DOM Style অবজেক্ট
Definition and Usage
marginBottom
property sets or returns the marginBottom of the element.
margin property and padding property Both insert space around the element. However, the difference is that margin inserts space around the border, while padding inserts space inside the element's border.
See also:
CSS Tutorial:CSS বাহ্যিক মার্গ
CSS Reference Manual:margin-bottom property
HTML DOM Reference Manual:margin property
Instance
Example 1
Set the marginBottom of the <div> element:
document.getElementById("myDiv").style.marginBottom = "50px";
Example 2
Change the marginBottom of the <div> element back to "normal":
document.getElementById("myDiv").style.marginBottom = "0px";
Example 3
Return the marginBottom of the <div> element:
alert(document.getElementById("myDiv").style.marginBottom);
Example 4
marginBottom এবং paddingBottom-এর পার্থক্য:
function changeMargin() { document.getElementById("myDiv").style.marginBottom = "100px"; } function changePadding() { document.getElementById("myDiv2").style.paddingBottom = "100px"; }
Syntax
return marginBottom property:
object.style.marginBottom
set marginBottom property:
object.style.marginBottom = "%|length|auto|initial|inherit"
বৈশিষ্ট্য মান
মান | বর্ণনা |
---|---|
% | পারস্পরিক উপাদানের প্রস্থতা শতাংশে নিচের বাহ্যিক মার্গ নির্দেশ করুন |
length | দৈর্ঘ্য ইউনিটে নিচের বাহ্যিক মার্গ নির্দেশ করুন |
auto | ব্রাউজার সেটিংসের নিচের বাহ্যিক মার্গ |
initial | এই বৈশিষ্ট্যটিকে তার ডিফল্ট মানে নিয়ে নিন। দেখুন initial。 |
inherit | পারস্পরিক উপাদান থেকে এই বৈশিষ্ট্যটি উত্তরাধিকার করে নেয়। দেখুন inherit。 |
প্রযুক্তিগত বিবরণ
ডিফল্ট মান: | 0 |
---|---|
ফলাফল: | শব্দতালিকা,যা উপাদানের নিচের বাহ্যিক মার্গকে নির্দেশ করে。 |
CSS সংস্করণ: | CSS1 |
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |
- পূর্ববর্তী পৃষ্ঠা margin
- পরবর্তী পৃষ্ঠা marginLeft
- একত্রিত স্তরে ফিরে যান HTML DOM Style অবজেক্ট