CSS classes around fields

AnkiWeb addon 631147309

Adds or removes CSS class wrappers around each field by modifying card types for selected notes via the browser's Edit menu.
AI-generated summary; may contain mistakes.

note-managementformattingappearancecard-templates

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
1 (👍 1 · 👎 0)
Updated
2018-11-27
Anki versions
unknown
License
GPL-3.0 (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python
Description language
en

Maintenance

abandoned

  • Last update or commit: 2020-08-02 (2282 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 0 open, 1 closed.
  • Pull requests: 0 open, 0 merged.
  • Median first response: 5 hours (1 answered issues and pull requests).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2018-11-27
History across monthly snapshots

Loading…

Similar addons

Inline CSS Cleanup

Extracts and deduplicates inline CSS from selected note fields, moves it to a shared media file, then inserts import links—optionally handling repeated inline styles, base64 images and Yomitan media references—to shrink collections.

sync-integrationnote-managementformattingbackup-maintenance

2 votes 34% approval 👍 2 · 👎 0 ⭐ 7 Anki 23.12~ Updated 2026-09-14
Insert HTML wrapper for your style

Wraps selected text in customizable HTML tags using a button or hotkeys, letting users style important words per note type through CSS.

formattingshortcuts

3 votes 44% approval 👍 3 · 👎 0 ⭐ 1 Anki 25.09.2~ Updated 2026-02-16

Description

Add CSS class around each field.

README

CSS style around fields

Rationale

I'd love to be able to have css applied to the content of fields. This add-on modify card's type to ensure that it is the case. I may also want to remove those fields because this impair readability. So this add-on also also allow to remove those CSS style.

Usage

In the browser, select at least a note of each type you want to modify. Do "Edit>Style around fields" to add the CSS fields, and "Edit>Remove style around style" to remove them.

TODO

It would be nice to edit the card type directly from the card type editor. I don't know how to do it. I don't know how to add button there.

Links, licence and credits

Key Value
Copyright Arthur Milchior arthur@milchior.fr
Based on Anki code by Damien Elmes anki@ichi2.net
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-style-around-fields
Addon number 631147309