I want to make the font size smaller of title and content in subcontent (which start with '=='). Can anybody tell me how to do it?
Topic on Project:Support desk
I mean, for example, in my wiki, every article has subcontent with title of 'references'.
and I want to make the title (references) and content smaller in font size in every articles.
Define custom CSS for specific classes or IDs: Manual:CSS
The problem is that one subcontent doesn't have class nor id. isn't is true?
you can wrap the entire section in a div:
<div style="font-size: 60%"> ==References== * foo </div>
I know this works, but it's really troublesome to type that in every article.
isn't there any way to make it automatically when the subcontent start with specific title (like '==References=='?
The easiest way would be define the CSS style rules inside a template, and use that template whenever the ==References==
section is to be included. See Help:Templates.
I wonder if you could use jQuery to change everything from the "References" heading to whatever comes next (eg another h2). Something similar is discussed on this Stack Overflow page.