Div-center-test

  • first link
  • second link
DIV {
  text-align: center; /* does NOT center the table inside the DIV!! */
  width: auto; /* is useless, as 'width' will take all remaining space */
  margin-left: auto;
  margin-right: auto;
  background: blue;
}

DIV TABLE {
  text-align: center;  /* does NOT center the table itself!! */
  background: red;
}

DIV TD {
  text-align: left;
}

DIV UL {
  text-align: left;
  list-style: none;
  margin: 0;
  background: yellow;
}

DIV LI {
  display: block;
  background: green;
}