pagination style : demo 3

HTML

CSS

                        .demo{ background: #3d6570; }
                        .pagination-outer{ text-align: center; }
                        .pagination{
                            display: inline-flex;
                            padding: 0 10px;
                            background: #000;
                            position: relative;
                        }
                        .pagination li{
                            padding: 10px 0;
                            position: relative;
                        }
                        .pagination li:first-child{ margin-right: 10px; }
                        .pagination li:last-child{ margin-left: 10px; }
                        .pagination li:first-child:before,
                        .pagination li:last-child:before{
                            content: "";
                            width: 100%;
                            height: 100%;
                            border-right: 2px solid #3d6570;
                            position: absolute;
                            top: 0;
                            left: 0;
                        }
                        .pagination li:last-child:before{
                            border-right: none;
                            border-left: 2px solid #3d6570;
                        }
                        .pagination li a.page-link{
                            width: 40px;
                            height: 40px;
                            line-height: 36px;
                            border-radius: 50%;
                            background: #000;
                            border: 2px solid transparent;
                            padding: 0;
                            margin-right: 10px;
                            font-size: 17px;
                            font-weight: 600;
                            color: #fff;
                            position: relative;
                        }
                        .pagination li:last-child a.page-link{ margin: 0 0 0 10px; }
                        .pagination li.active a.page-link,
                        .pagination li a.page-link:hover{
                            border-color: #fff;
                            background: #000;
                        }
                        @media only screen and (max-width: 479px){
                            .pagination{
                                display: block;
                                overflow: auto;
                            }
                            .pagination li{ display: inline-block; }
                            .pagination li:first-child:before,
                            .pagination li:last-child:before{
                                display: none;
                            }
                            .pagination li:first-child,
                            .pagination li:last-child,
                            .pagination li:last-child a.page-link{ margin: 0; }
                        }
                    
License Terms