首页htmltextPage Widget - 如何中心文本和图像

Page Widget - 如何中心文本和图像

我们想知道如何中心文本和图像。


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#Outer1 {
  display: table-cell;
  height: 500px;
  width: 500px;
  border: 1px solid red;
  vertical-align: middle;
  text-align: center;
}
</style>
</head>
<body>
  <div id="Outer1" class="elementStatus">
    <div class="image">
      <!-- THIS IS THE IMAGE -->
      <img src="http://www.w3cschool.cn/style/download.png" />
    </div>
    <div class="text">Statuts Text</div>
  </div>
</body>
</html>