Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Wiki: How to add CSS to Table Of Content?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 449
Location: Hong Kong

PostPosted: Fri Nov 17, 2023 9:46 am    Post subject: Gentoo Wiki: How to add CSS to Table Of Content? Reply with quote

Is it possible to add CSS styling to the Table Of Content (i.e. __TOC__)?

https://www.mediawiki.org/wiki/Template:TOC

For example, how to align it to the right? I would like to add position: sticky; top: 0; to it. I tried adding <style>.toc{ position: -webkit-sticky; position: sticky; top: 0; }</style> but it end up showing in plain text in the content.
_________________
- midnite.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum