steckl: CSS Schachbrettmuster

Beitrag lesen

Hi,

body {
background-color: gray; }

#wrap {
margin:auto 20px;
width: 50px; }

td {

In deinem HTML gibt es kein td-Element. Verwende stattdessen
#wrap div
Damit sprichst du alle divs an, die innerhalb des Elements mit der id 'wrap' liegen.

width: 100px;
height: 100px; }

.schwarz {
background-color: #000000;
width: 100px;
height: 100px; }

Es reichst wenn du width und height einmal (bei "#wrap div") angibst.

.weiss {
     background-color: #ffffff;
width: 100px;
height: 100px; }

Siehe letzter Hinweis.

Noch jemand eine Idee?

Ich hab dir vorhin schonmal empfohlen, dass du float brauchst. Damit löst du das von dir angesprochene Problem.

mfG,
steckl