• Q&A
  • 회원가입
  • 로그인

[pagination] CSS - Rounded bordered pagination (둥근테두리페이징)

예제

 

<style>

.pagination {

  display: inline-block;

}


.pagination a {

  color: black;

  float: left;

  padding: 8px 16px;

  text-decoration: none;

  border: 1px solid coral;

}


.pagination a.active {

  background-color: red;

  color: white;

  border: 1px solid #coral;

}


.pagination a:hover:not(.active) {background-color: yellow;}


.pagination a:first-child {

  border-top-left-radius: 5px;

  border-bottom-left-radius: 5px;

}


.pagination a:last-child {

  border-top-right-radius: 5px;

  border-bottom-right-radius: 5px;

}

</style>


<div class="pagination">

  <a href="#">&laquo;</a>

  <a href="#">1</a>

  <a class="active" href="#">2</a>

  <a href="#">3</a>

  <a href="#">4</a>

  <a href="#">5</a>

  <a href="#">6</a>

  <a href="#">&raquo;</a>

</div>

 

결과보기

 

방문 감사합니다. (즐겨찾기 등록: Ctrl + D)

찾아주셔서 감사합니다. Since 2012