Yazeka
Arama sonuçlarına göre oluşturuldu
HTML'de önceki ve sonraki öğeler eklemek için
::beforeve
::afterpseudo-elementleri kullanılabilir 1.
Örnek kullanım:
- Önceki öğe:
a
etiketine sınıf ekleyerek venext
metnini kullanarak 2:<a href="#" class="previous">« Previous</a>
- Sonraki öğe: Yine
a
etiketine sınıf ekleyerek venext
metnini kullanarak 2:<a href="#" class="next">Next »</a>
CSS ile stillendirme:
a { text-decoration: none; display: inline-block; padding: 8px 16px; } a:hover { background-color: #ddd; color: black; } .previous { background-color: #f1f1f1; color: black; } .next { background-color: #04AA6D; color: white; } .round { border-radius: 50%; } ``` [2](https://www.w3schools.com/howto/howto_css_next_prev.asp).
5 kaynaktan alınan bilgiyle göre: