Help talk:Cascading Style Sheets

Have custom CSS cascade to all Wikimedia sites as part of Unified Login
Is there any way to have custom CSS (and custom JS) cascade to all Wikimedia sites instead of having it per site? This could be allowed and encouraged as part of the Unified Login system. Currently I have a custom CSS for the English Wikipedia and Vector skin. On other Wikimedia sites such as Wikipedia in other languages, Wiktionary and Wikiquote, I have to manually create a custom CSS for the Vector skin per site, and add the import line in each of them as follows:

This allows me to manually cascade the CSS I use in English Wikipedia to other Wikimedia sites, as long as I have created the custom CSS and added the import line. I couldn't find any automatic solution where a single custom CSS would be cascaded to every Wikimedia site on which the Unified Login system can log in a user to. Is there such a solution that I'm unaware of? -- ADTCTalk Ctrb. 09:01, 27 November 2011 (UTC)

Proposal to rename Catalogue of CSS classes
Please comment at Wikipedia talk:Catalogue of CSS classes. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 21:33, 8 March 2013 (UTC)

Enable styles with url
Is there a way to enable CSS with url-attributes? --31.150.98.151 (talk) 11:30, 13 February 2015 (UTC)
 * No. -- Red rose64 (talk) 00:26, 14 February 2015 (UTC)

Links to svn.wikimedia.org
These redirect to Phabricator, and not, as far a I can see, in a useful way.

All the best: Rich Farmbrough, 17:09, 17 March 2016 (UTC).

Define CSS classes (or otherwise define general CSS) on specific page
Hi,

On da:wiki we have a number of pages, mostly portal pages, which are formatted using HTML and CSS. These pages often have a lot of HTML elements like ... where all (or almost all) the same elements (e.g. all the  ) have the same style, making it somewhat tedious to make changes to the styles  - as you then have to change a (large) number of identical style-attributes.

Now in plain HTML you can fix this by having a section in the or by including a CSS file - But not of these seems to be an option in wiki.

Is there some way to define a block of CSS tags or classes in a single wikipedia page - to avoid having to repeat the same style attribute over and over ?

--Honymand (talk) 18:50, 20 November 2016 (UTC)
 * Not for single pages. Where a style (or group of styles) is in use across a wide range of pages, we can set up suitable classes in MediaWiki:Common.css - for example the various rules for the  class that was added a few years ago. -- Red rose64 (talk) 23:50, 20 November 2016 (UTC)

Fixing the accidental return of decorative quotations
Please see: Wikipedia talk:Manual of Style

— SMcCandlish ☏ ¢ 😼  01:37, 12 November 2020 (UTC)