Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67441

How to display images at the center of the page, and a button at bottom of the page

$
0
0

I want to display two images, side by side, at the center of the page, as well as display a button at bottom of the page.

Currently, the alignment of the two images is horizontally center. But, what I want is the two images at center of the page.

Below is my code:

table,
th,
td {
  border: 1px solid black;
  border-collapse: collapse;
}

th,
td {
  padding: 15px;
}

.button {
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
}

.home {
  font-size: 20px;
  width: 100%;
  background-color: #2483E8;
}
<body align="center"><h2>Guidance</h2><br><table style="width:100%" id="haha"></table><br><img src="image/add.png" width="130px" height="130px"><img src="image/list.png" width="130px" height="130px"><br><br><br><button class="button home" onclick="window.location.href='index.html'">HOME</button></body>

Can anyone help?


Viewing all articles
Browse latest Browse all 67441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>