aboutsummaryrefslogtreecommitdiff
path: root/files/tr/web/guide/css/sayaçlar/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/tr/web/guide/css/sayaçlar/index.html')
-rw-r--r--files/tr/web/guide/css/sayaçlar/index.html102
1 files changed, 0 insertions, 102 deletions
diff --git a/files/tr/web/guide/css/sayaçlar/index.html b/files/tr/web/guide/css/sayaçlar/index.html
deleted file mode 100644
index d31a159a27..0000000000
--- a/files/tr/web/guide/css/sayaçlar/index.html
+++ /dev/null
@@ -1,102 +0,0 @@
----
-title: CSS Sayaçlarını Kullanmak
-slug: Web/Guide/CSS/Sayaçlar
-tags:
- - CSS
- - CSS Counter
- - CSS Sayaçlar
- - MDN
- - Sayaçlar
-translation_of: Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters
----
-<p>{{CSSRef}}</p>
-<p><span class="seoSummary">CSS counters are, in essence, variables maintained by CSS whose values may be incremented by CSS rules to track how many times they're used. This lets you adjust the appearance of content based on its placement in the document.</span> CSS counters are an implementation of <a class="external" href="http://www.w3.org/TR/CSS21/generate.html#counters">Automatic counters and numbering</a> in CSS 2.1.</p>
-<p>The value of a counter is manipulated through the use of {{cssxref("counter-reset")}} and {{cssxref("counter-increment")}} can be displayed on a page using the <code>counter()</code> or <code>counters()</code> function of the <code><a href="/en-US/docs/CSS/content" title="CSS/content">content</a></code> property.</p>
-<h2 id="Using_counters" name="Using_counters">Sayaçları kullanmak</h2>
-<p>To use a CSS counter, it must first be reset to a value, 0 by default. To add the value of a counter to an element, use the counter() function. The following CSS adds to the beginning of each h3 element "Section &lt;the value of the counter&gt;:".</p>
-<pre class="brush: css">body {
- counter-reset: bolum; /* bolum adlı sayacın değerini 0 olarak ayarla */
-}
-h3:before {
- counter-increment: bolum; /* bolum adlı sayacı arttır */
- content: "Bölüm" counter(bolum) ": "; /* Sayacı görüntüle */
-}
-</pre>
-<p>Örnek:</p>
-<pre class="brush: html">&lt;h3&gt;Giriş&lt;/h3&gt;
-&lt;h3&gt;Gövde&lt;/h3&gt;
-&lt;h3&gt;Sonuç&lt;/h3&gt;</pre>
-<p>{{ EmbedLiveSample('Using_counters', 300,200) }}</p>
-<h2 id="Nesting_counters" name="Nesting_counters">Nesting counters</h2>
-<p>A CSS counter can be especially useful to make outlined lists because a new instance of a CSS counter is automatically created in child elements. Using the <code>counters()</code> function, a string can be inserted between different levels of nested counters. For example this CSS:</p>
-<pre class="brush: css">ol {
- counter-reset: section; /* Creates a new instance of the
- section counter with each ol
- element */
- list-style-type: none;
-}
-li:before {
- counter-increment: section; /* Increments only this instance
- of the section counter */
- content: counters(section,".") " "; /* Adds the value of all instances
- of the section counter separated
- by a ".". */
- /* if you need to support &lt; IE8 then
- make sure there is no space after
- the ','
-}
-</pre>
-<p>Combined with the following HTML:</p>
-<pre class="brush: html">&lt;ol&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 1 --&gt;
- &lt;li&gt;item &lt;!-- 2 --&gt;
- &lt;ol&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 2.1 --&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 2.2 --&gt;
- &lt;li&gt;item &lt;!-- 2.3 --&gt;
- &lt;ol&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 2.3.1 --&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 2.3.2 --&gt;
- &lt;/ol&gt;
- &lt;ol&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 2.3.1 --&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 2.3.2 --&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 2.3.3 --&gt;
- &lt;/ol&gt;
- &lt;/li&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 2.4 --&gt;
- &lt;/ol&gt;
- &lt;/li&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 3 --&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 4 --&gt;
-&lt;/ol&gt;
-&lt;ol&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 1 --&gt;
- &lt;li&gt;item&lt;/li&gt; &lt;!-- 2 --&gt;
-&lt;/ol&gt;</pre>
-<p>Yields this result:</p>
-<p>{{ EmbedLiveSample('Nesting_counters',400,'100%') }}</p>
-<h2 id="Specifications" name="Specifications">Specifications</h2>
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSS2.1', 'generate.html#generate.html#counters', 'counter-reset')}}</td>
- <td>{{Spec2('CSS2.1')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-<h2 id="See_also" name="See_also">See also</h2>
-<ul>
- <li><a href="/en-US/docs/CSS/counter-reset" title="CSS/counter-reset">counter-reset</a></li>
- <li><a href="/en-US/docs/CSS/counter-increment" title="CSS/counter-increment">counter-increment</a></li>
-</ul>
-<p><em>There is an additional example available at <a class="external" href="http://www.mezzoblue.com/archives/2006/11/01/counter_intu/" rel="freelink">http://www.mezzoblue.com/archives/20.../counter_intu/</a>. This blog entry was posted on November 01, 2006, but appears to be accurate.</em></p>
-<p> </p>