FMP Posted January 23, 2021 Share Posted January 23, 2021 Site URL: https://www.freemusicplease.com/page4 Hello everyone! I have a problem, I have found a CSS code for pagination, this was pretty easy, but I don't have any idea on how it works! I mean, how can I link the pages to make able people to navigate through my pages? I have SS 7.1 and a personal plan. Thanks in advance for the answers! freemusicplease.com/page4# Link to comment
tuanphan Posted January 31, 2021 Share Posted January 31, 2021 Hi. Which pagination did you use? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
FMP Posted January 31, 2021 Author Share Posted January 31, 2021 I have copy one from this page https://www.w3schools.com/css/css3_pagination.asp Link to comment
tuanphan Posted February 6, 2021 Share Posted February 6, 2021 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="#">«</a> <a href="#">»</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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
FMP Posted February 6, 2021 Author Share Posted February 6, 2021 @tuanphan it doesn’t work ... I mean...I'm not able to switch between the pages... how can I make? Link to comment
tuanphan Posted February 8, 2021 Share Posted February 8, 2021 You can replace 2 # with new urls Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
FMP Posted February 8, 2021 Author Share Posted February 8, 2021 On 2/6/2021 at 9:39 AM, tuanphan said: Edit page > Add a Code block > Paste this code <div class="pagination"> <a href="#">«</a> <a href="#">»</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="#">«</a> <a href="#">»</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
tuanphan Posted February 8, 2021 Share Posted February 8, 2021 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="#">«</a> <a href="#">»</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="#">«</a> <a href="#">»</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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
FMP Posted February 8, 2021 Author Share Posted February 8, 2021 18 minutes ago, tuanphan said: You can shorten code <div class="pagination"> <a href="#">«</a> <a href="#">»</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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.