diff options
author | Ryan Johnson <rjohnson@mozilla.com> | 2021-04-29 16:16:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 16:16:42 -0700 |
commit | 95aca4b4d8fa62815d4bd412fff1a364f842814a (patch) | |
tree | 5e57661720fe9058d5c7db637e764800b50f9060 /files/fa/web/css/margin/index.html | |
parent | ee3b1c87e3c8e72ca130943eed260ad642246581 (diff) | |
download | translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2 translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip |
remove retired locales (#699)
Diffstat (limited to 'files/fa/web/css/margin/index.html')
-rw-r--r-- | files/fa/web/css/margin/index.html | 208 |
1 files changed, 0 insertions, 208 deletions
diff --git a/files/fa/web/css/margin/index.html b/files/fa/web/css/margin/index.html deleted file mode 100644 index 99ad6b8b4e..0000000000 --- a/files/fa/web/css/margin/index.html +++ /dev/null @@ -1,208 +0,0 @@ ---- -title: margin -slug: Web/CSS/margin -translation_of: Web/CSS/margin -translation_of_original: Web/CSS/margin-new ---- -<div dir="rtl">{{CSSRef()}}</div> - -<h2 dir="rtl" id="خلاصه_مطلب">خلاصه مطلب</h2> - -<p dir="rtl">خواصیت margin درCSS حاشیه را برای چهار طرف عنصر مشخص می کند. این خواصیت خلاصه شده چهار خواصیت {{ Cssxref("margin-top") }} ، {{ Cssxref("margin-right") }} ، {{ Cssxref("margin-bottom") }} و {{ Cssxref("margin-left") }} می باشد که برای جلوگیری از مقدار دهی به هر کدام از این خواص تعبیه شده است.</p> - -<p dir="rtl">همچنین قابلیت مقداردهی با مقادیر منفی را نیز داراست.</p> - -<h2 dir="rtl" id="روش_استفاده">روش استفاده</h2> - -<pre class="brush:css" dir="rtl">/* به هر چهار جهت این مقدار اعمال می گردد */ -margin: 1em; - -/*افقی (قسمت چپ و راست) | عمودی (قسمت بالا و پایین) */ -margin: 5% auto; - -/* پایین | افقی(چپ و راست) | بالا */ -margin: 1em auto 2em; - -/* چپ | پایین | راست | بالا */ -margin: 2px 1em 0 auto; - -margin: وارث; -</pre> - -<h3 dir="rtl" id="مقادیر">مقادیر</h3> - -<p dir="rtl">یک، دو، سه و یا چهار عدد از مقادیر زیر را می پذیرد:</p> - -<dl> - <dt dir="rtl"><code><length></code></dt> - <dd dir="rtl">مقدار ثابتی را مشخص می کند. مقادیر منفی مورد قبول هستند. مقادیر قابل قبول را در {{cssxref("<length>")}} مشاهده کنید.</dd> - <dt dir="rtl"><code><percentage></code></dt> - <dd dir="rtl">A {{cssxref("<percentage>")}} relative to the <strong>width</strong> of the containing block. Negative values are allowed.</dd> - <dt dir="rtl"><code>auto</code></dt> - <dd dir="rtl"><code>auto </code>is replaced by some suitable value, e.g. it can be used for centering of blocks.<br> - <code>div { width:50%; margin:0 auto; }</code> centers the div container horizontally.</dd> -</dl> - -<ul dir="rtl"> - <li><strong>One</strong> single value applies to all <strong>four sides</strong>.</li> - <li><strong>Two</strong> values apply first to <strong>top and bottom</strong>, the second one to <strong>left and right</strong>.</li> - <li><strong>Three</strong> values apply first to <strong>top</strong>, second to <strong>left and right</strong> and third to <strong>bottom</strong>.</li> - <li><strong>Four</strong> values apply to <strong>top</strong>, <strong>right</strong>, <strong>bottom</strong> and <strong>left</strong> in that order (clockwise).</li> -</ul> - -<h3 dir="rtl" id="Formal_syntax">Formal syntax</h3> - -{{csssyntax("margin")}} - -<h2 dir="rtl" id="Examples">Examples</h2> - -<h3 dir="rtl" id="Simple_example">Simple example</h3> - -<h4 dir="rtl" id="HTML">HTML</h4> - -<pre class="brush: html" dir="rtl"><div class="ex1"> - margin: auto; - background: gold; - width: 66%; -</div> -<div class="ex2"> - margin: 20px 0 0 -20px; - background: gold; - width: 66%; -</div></pre> - -<h4 dir="rtl" id="CSS">CSS</h4> - -<pre class="brush: css; highlight:[2,7]" dir="rtl">.ex1 { - margin: auto; - background: gold; - width: 66%; -} -.ex2 { - margin: 20px 0px 0 -20px; - background: gold; - width: 66%; -}</pre> - -<p dir="rtl">{{ EmbedLiveSample('Margin_Exemples') }}</p> - -<h3 dir="rtl" id="Another_example">Another example</h3> - -<pre class="brush: css" dir="rtl">margin: 5%; /* all sides 5% margin */ - -margin: 10px; /* all sides 10px margin */ - -margin: 1.6em 20px; /* top and bottom 1.6em, left and right 20px margin */ - -margin: 10px 3% 1em; /* top 10px, left and right 3%, bottom 1em margin */ - -margin: 10px 3px 30px 5px; /* top 10px, right 3px, bottom 30px, left 5px margin */ - -margin: 1em auto; /* 1em margin on top and bottom, box is horizontally centered */ - -margin: auto; /* box is horizontally centered, 0 margin on top and bottom */ -</pre> - -<h2 dir="rtl" id="Horizontal_centering_with_margin_0_auto">Horizontal centering with <code>margin: 0 auto;</code></h2> - -<p dir="rtl">To center something horizontally in modern browsers, use <code><a href="/en-US/docs/Web/CSS/display">display</a>: flex; <a href="/en-US/docs/Web/CSS/justify-content">justify-content</a>: center;</code> .</p> - -<p dir="rtl">However, in older browsers like IE8-9, these are not available. In order to center an element inside its parent, use <code>margin: 0 auto;</code></p> - -<h2 dir="rtl" id="Specifications">Specifications</h2> - -<table class="standard-table" dir="rtl"> - <thead> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{ SpecName('CSS3 Box', '#margin', 'margin') }}</td> - <td>{{ Spec2('CSS3 Box') }}</td> - <td>No significant change.</td> - </tr> - <tr> - <td>{{ SpecName('CSS3 Transitions', '#animatable-css', 'margin') }}</td> - <td>{{ Spec2('CSS3 Transitions') }}</td> - <td>Defines <code>margin</code> as animatable.</td> - </tr> - <tr> - <td>{{ SpecName('CSS2.1', 'box.html#margin-properties', 'margin') }}</td> - <td>{{ Spec2('CSS2.1') }}</td> - <td>Removes its effect on inline elements.</td> - </tr> - <tr> - <td>{{ SpecName('CSS1', '#margin', 'margin') }}</td> - <td>{{ Spec2('CSS1') }}</td> - <td>Initial definition.</td> - </tr> - </tbody> -</table> - -<h2 dir="rtl" id="Browser_compatibility">Browser compatibility</h2> - -<p dir="rtl">{{ CompatibilityTable() }}</p> - -<div dir="rtl" id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari (WebKit)</th> - </tr> - <tr> - <td>Basic support</td> - <td>1.0</td> - <td>{{ CompatGeckoDesktop("1") }}</td> - <td>3.0</td> - <td>3.5</td> - <td>1.0 (85)</td> - </tr> - <tr> - <td><code>auto</code> value</td> - <td>1.0</td> - <td>{{ CompatGeckoDesktop("1") }}</td> - <td>6.0 (strict mode)</td> - <td>3.5</td> - <td>1.0 (85)</td> - </tr> - </tbody> -</table> -</div> - -<div dir="rtl" id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Phone</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>1.0</td> - <td>{{ CompatGeckoMobile("1") }}</td> - <td>6.0</td> - <td>6.0</td> - <td>1.0</td> - </tr> - </tbody> -</table> -</div> - -<h2 dir="rtl" id="See_also">See also</h2> - -<ul> - <li dir="rtl"><a class="internal" href="/en/CSS/margin_collapsing" title="en/CSS/margin collapsing">Margin collapsing</a></li> -</ul> |