Jump to content

Pagination Link

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

On 1/31/2021 at 6:59 PM, FMP said:

I have copy one from this page https://www.w3schools.com/css/css3_pagination.asp

Edit page > Add a Code block > Paste this code

<div class="pagination">
  <a href="#">&laquo;</a>
  <a href="#">&raquo;</a>
</div>
<style>
.pagination {
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 2/6/2021 at 9:39 AM, tuanphan said:

Edit page > Add a Code block > Paste this code


<div class="pagination">
  <a href="#">&laquo;</a>
  <a href="#">&raquo;</a>
</div>
<style>
.pagination {
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}
</style>

 

Thank you so much @tuanphan!!! It works great!!! I have tried to add some code to center and put the symbols inside two squares.

I hope can help someone else!

 

<!DOCTYPE html>
<html>
<head>
<style>
.center {
  text-align: center;
  
}
</style>
</head>
<body>
<div class="center">
<div class="pagination">
  
  <a href="#">&laquo;</a>
  <a href="#">&raquo;</a>
</div>
<style>
.pagination {
  display: inline-block;
}
.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  
}
</style>

 

Link to comment
5 minutes ago, FMP said:

Thank you so much @tuanphan!!! It works great!!! I have tried to add some code to center and put the symbols inside two squares.

I hope can help someone else!

 


<!DOCTYPE html>
<html>
<head>
<style>
.center {
  text-align: center;
  
}
</style>
</head>
<body>
<div class="center">
<div class="pagination">
  
  <a href="#">&laquo;</a>
  <a href="#">&raquo;</a>
</div>
<style>
.pagination {
  display: inline-block;
}
.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  
}
</style>

 

You can shorten code

<div class="pagination"> 
  <a href="#">&laquo;</a>
  <a href="#">&raquo;</a>
</div>
<style>
.pagination {
  display: inline-block;
  text-align: center;
}
.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
18 minutes ago, tuanphan said:

You can shorten code


<div class="pagination"> 
  <a href="#">&laquo;</a>
  <a href="#">&raquo;</a>
</div>
<style>
.pagination {
  display: inline-block;
  text-align: center;
}
.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  
}
</style>

 

It doens't work..... the block is still on the left..

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.