Different background images for front and back?

male's Avatar

male

29 Jun, 2015 11:35 PM

Is there a way to implement two different background images for the front and the back of a card? With ' background-image: url("example.jpg"); ' I can use example.jpg from the anki folder but it seems to work only for card styles, not div etc. .

  1. Support Staff 1 Posted by Damien Elmes on 30 Jun, 2015 02:38 AM

    Damien Elmes's Avatar

    I'm afraid we can't provide official support for HTML and CSS, so I'll move this question to the community forum.

  2. 2 Posted by keldi on 30 Jun, 2015 08:27 AM

    keldi's Avatar

    Hello, male

    I've just tried on computer version of Anki and this works for me:
    <div style='background-image:url("front_image.jpg")';> front of card here </div>

    <div style='background-image:url("back_image.jpg")';> back of card here </div>

    If it doesn't help, please give more information about your card template.

  3. 3 Posted by male on 01 Jul, 2015 11:02 PM

    male's Avatar

    Hello keldi,

    thanks for your help. I have tried it before but I never saw the image because the div was empty.

    Thank you very much!

  4. System closed this discussion on 22 Feb, 2016 11:53 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac