Toon posts:

[CSS] rare syntax

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hoi

Ik kwam dit ergens tegen :

p {
font-family: verdana, arial, helvetica, sans-serif;
line-height: 1.1em;
margin: 0 0 16px 0;
padding: 0;
}

.content>p {
margin: 0;
}

.content>p+p {
text-indent: 30px;
}


Snapt iemand wat

.content>p+p


doet ?

Ik namelijk niet ....

  • Rickets
  • Registratie: Augustus 2001
  • Niet online

Rickets

Finger and a shift

E > F
Matches any F element that is a child of an element E.

E + F
Matches any F element immediately preceded by an element E.
Dus, een paragraaf is een child van een element met de class content. Als het volgende element ook een paragraaf is, krijgt deze een text-indent van 30px.

offtopic:
Hoi BtM909 ;) :>

[ Voor 6% gewijzigd door Rickets op 24-06-2003 12:16 ]

If some cunt can fuck something up, that cunt will pick the worst possible time to fucking fuck it up, because that cunt’s a cunt.


  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

check je documentation:
Sibbling selector
A sibbling selector defines a style that applies to elements that are preceded by a specific element with the same parent.
edit:

he Rickets :( :+

[ Voor 9% gewijzigd door BtM909 op 24-06-2003 12:08 ]

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.