aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/css/_colon_-moz-first-node/index.html
blob: 97002e8509931a2ee1767bd0ef85168e0ddb2e8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: ':-moz-first-node'
slug: 'Web/CSS/:-moz-first-node'
tags:
  - CSS
  - CSS Referenz
  - NeedsCompatTable
  - Non-standard
translation_of: 'Web/CSS/:-moz-first-node'
---
<div>{{Non-standard_header}}{{CSSRef}}</div>

<h2 id="Übersicht">Übersicht</h2>

<p>Die <code>:-moz-first-node</code> <a href="/de/docs/Web/CSS">CSS</a> <a href="/de/docs/Web/CSS/Pseudo-classes">Pseudoklasse</a> repräsentiert ein beliebiges Element, dass der erste Kindknoten eines anderen Elements ist. Es unterscheidet sich von {{cssxref(":last-child")}}, da es keine letzten Kindelemente mit darauffolgendem (nicht aus Leerzeichen bestehenden) Text matcht.</p>

<p class="note">Any white space at the start of an element is ignored for the determination of <code>:-moz-first-node</code>.</p>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox"><var>span</var>:-moz-first-node { <em>Stileigenschaften</em> }
</pre>

<h2 id="Beispiel">Beispiel</h2>

<h3 id="CSS">CSS</h3>

<pre class="brush:css">span:-moz-first-node {
  background-color: lime;
}
</pre>

<h3 id="HTML">HTML</h3>

<pre class="brush:html">&lt;div&gt;
  &lt;span&gt;:-moz-first-node&lt;/span&gt;
  &lt;span&gt;:-moz-last-node&lt;/span&gt;
&lt;/div&gt;
</pre>

<p>{{EmbedLiveSample("Example", "220", "20")}}</p>

<h2 id="Siehe_auch">Siehe auch</h2>

<ul>
 <li>{{cssxref(":-moz-last-node")}}</li>
 <li>{{cssxref(":first-child")}}</li>
</ul>