更改下一步和后退按钮之间的 space

Changing the space between next and back buttons

我正在使用 The Point 主题,我试图将上一页按钮移动到左侧,我查看了 Styles.css 文件并想出了如何在右侧,但我不知道如何展开两个按钮之间的 space 并在左侧制作上一页按钮,它们只是堆叠在一起...

这是它的截图:

https://imgur.com/z9qiTNG

这里是来自 styles.css 文件的分页代码:

/* Pagination */
nav.posts-navigation { clear: both }
.pagination {
 clear: both;
 overflow: hidden;
 width: 100%;
 margin: 5px auto;
 text-align: center;
 font-size: 18px;
}
.single .pagination {
 border: 0;
 box-shadow: none;
 -moz-box-shadow: none;
 -webkit-box-shadow: none;
 margin-top: 0;
 padding: 3% 0;
 width: 100%;
 text-align: right;
}
.pagination ul {
 list-style: none;
 margin: 0;
 display: inline-block;
}
.pagination ul li {
 display: inline-block;
 margin-bottom: 5px;
}
.pagination .current, .pagination .dots, .pagination a:hover {
 color: #fff;
 margin: 0 1px 0 0;
 display: inline-block;
 line-height: 1;
 text-decoration: none;
 padding: 10px 13px;
 background: #2a2a2a;
 font-weight: bold;
 margin-bottom: 10px;
}
.single .pagination .current {
 padding: 0;
 margin: 0;
 background: transparent;
}
.single .pagination a .currenttext {
 padding: 0;
 background: transparent;
 color: #FFF;
 margin-right: 0;
 margin-bottom: 0;
}
.single .pagination a:hover .currenttext { color: #fff }
.pagination a {
 background: #38B7EE;
 margin: 0 1px 0 0;
 display: inline-block;
 line-height: 1;
 text-decoration: none;
 color: #fff;
 padding: 10px 13px;
 transition: all 0.25s linear;
 font-weight: bold;
 margin-bottom: 10px;
}
.pagination ul li:last-child a { margin-right: 0 }
.pagination a:hover { color: #fff }
.pagination i.icon-left { margin-right: 7px }
.pagination i.icon-right { margin-right: 7px }
.top {
 float: right;
 position: absolute;
 left: 50%;
 top: -18px;
 width: 52px;
 height: 52px;
 margin-left: -26px;
 background: #eee;
 border-top: 1px solid #ddd;
 border-radius: 30px;
 -webkit-border-radius: 30px;
 -moz-border-radius: 30px;
 z-index: 100;
}
.pnavigation2 {
 display: block;
 width: 100%;
 overflow: hidden;
 padding: 15px 0;
 float: left;
 margin-top: 20px;
}
.pagination .nav-previous { float: left }
.pagination .nav-next { float: right }
.pagination .nav-previous a, .pagination .nav-next a { color: #fff!important }
.pagination .nav-previous a:hover, .pagination .nav-next a:hover { background-color: #222 }
.single .currenttext { margin-bottom: 0 }
.pagination .current .currenttext { margin-bottom: 10px }

一种方法是使用 Flexbox 和 justify-content: space-between。每个 link 按钮(弹性子元素)固定到父元素的任一角。

.pagination {
  display: flex;
  justify-content: space-between;
}

.btn {
  background-color: #35bbee;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}
<div class="pagination">
  <a class="btn btn-prev" href="#">Previous Page</a>
  <a class="btn btn-next" href="#">Next Pages</a>
</div>

jsFiddle