Probleme mit Zentrierung von Tabellen
bearbeitet von Rolf BHallo,
auf meiner Website habe ich eine Tabelle die in PHP erzeugt wird. Aus irgendeinem Grund wird die Tabelle aber Links an den Rand gepresst (siehe Bild[![Tabelle Links](/images/85282246-b241-11ea-9911-b42e9947ef30.png?size=medium "Tabelle Links")](/images/85282246-b241-11ea-9911-b42e9947ef30.png))
Im style.css habe ich bisher folgendes:`.tables {
width: 600px;
margin-left: 300px;
text-align: left;
}
table,
th,
td{
border: 1px solid #a0a0a0;
}
}
th,
td {
font-weight: normal;
text-align: left;
}
th{
color:coral;
background-color: #f1f3f4;
font-weight: 700;
}`