Thursday, 31 December 2020

CSS Pagination

                             CSS Pagination

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Pagination</title>
</head>
<style>
    .pagination {
        displayinline-block;
    }
    .pagination a {
        colorblack;
        floatleft;
        text-decoration:none;
        font-size40px/*Use font size to change the pagination size */
        padding10px 13px;
        margin3px;
        /* border-radius: 6px; */
        border1px solid crimson;
        transition: background-color 0.8s/*Adding transition effects on hover*/
        
    }
    .pagination a.active {
        background-colorrgb(9521895);
        /* border-radius: 8px; */
    }
    .pagination a:hover:not(.active) {
        background-color#555dc2;
    }
    .pagination a:first-child {
        border-top-left-radius6px;
        border-bottom-left-radius5px;
    }
    .pagination a:last-child {
        border-top-right-radius6px;
        border-bottom-right-radius6px;
    }
    .center {
        text-aligncenter;
    }
</style>
<body>
    <div class="center">
    <div class="pagination">
        <a href=""><<</a>
        <a href="">1</a>
        <a href="">2</a>
        <a href="">3</a>
        <a class="active" href="">4</a>
        <a href="">5</a>
        <a href="">6</a>
        <a href="">>></a>
    </div>
</div>
</body>
</html>
Breadcrumb......
 

 

No comments:

Post a Comment

Get Phone Number Details Using Python

 Get Phone Number Details Using Python Import Python module PHONENUMBERS using command " pip install phonenumbers" in you CLI Then...