emailconfirmed, nsInternRO, nsInternRW, Administrators
3,356
edits
Line 99: | Line 99: | ||
Übersicht Selektoren: | Übersicht Selektoren: | ||
{|{{Template:Prettytable}} | {| {{Template:Prettytable}} | ||
| HTML- | |- | ||
! Class | |||
! Beschreibung | |||
! Syntax | |||
! Beispiel CSS | |||
! Beispiel HTML | |||
|- | |||
| HTML Tags | |||
| Format für bestehende HTML-Tags | | Format für bestehende HTML-Tags | ||
| Selektor heißt: <tt>tag</tt> | | Selektor heißt: <tt>tag</tt> | ||
| <source lang="CSS">p { color:red; }</source> | | <source lang="CSS">p { color:red; }</source> | ||
| <source lang="HTML4Strict"><p>Text</p></source> | |||
|- | |||
| Custom Class | |||
| Eigene Formate | |||
| Selektor beginnt mit einem Punkt <tt>.</tt> | |||
| <source lang="CSS">.red { color:red; }</source> | |||
| <source lang="HTML4Strict"><p class="red">Text</p></source> | |||
|- | |||
| ID | |||
| Universelle ID (Box System) | |||
| Selektor beginnt mit einer Raute <tt>#</tt> | |||
| <source lang="CSS">#myID { position:fixed; left:25px; }</source> | |||
| <source lang="HTML4Strict"><div id="myID"><p>Text</p></div></source> | |||
|} | |} | ||