Ich habe mir gerade aus Spaß eine Seite in Quell-HTML angeschaut und zusätzlich dazu das CSS.
Ich habe gesehen, dass folgendes div definiert ist:
<div class="col cs1">
Ein Blick in die CSS-Datei sagt mir:
Ich gehe mal davon aus, dass der Selektor "col" sich auf die Verschachtelung ".listCont .headRow .col div" bezieht, auf welchen Selektor sich jetzt aber "cs1" bezieht sehe ich nicht? Welcher Selektor ist gemeint, und warum?
Ich habe gesehen, dass folgendes div definiert ist:
<div class="col cs1">
Ein Blick in die CSS-Datei sagt mir:
Code:
.listCont .cs1 { width:240px; }
.listCont .prodRow .cs1 .product { ... }
.listCont .prodRow .cs1 .product .avail { ... }
.listCont .prodRow .cs1 .product .prod { ... }
.listCont .prodRow .cs1 .product .prod strong { ... }
.listCart .cs1 { width:120px; }
.paymentCart .cs1 { width:506px; }
.listCont .headRow .col {... }
.listCont .headRow .col div { padding-left:10px; }
.listCont .prodRow .col { ... }
Ich gehe mal davon aus, dass der Selektor "col" sich auf die Verschachtelung ".listCont .headRow .col div" bezieht, auf welchen Selektor sich jetzt aber "cs1" bezieht sehe ich nicht? Welcher Selektor ist gemeint, und warum?