I'm using padding for the front side of the card to center Kanji on the front of the card because it makes it a bit easier for me visually but the padding is also applying to the back of the card as well
I dont want the padding to apply to {{FrontSide}} on the back of the card
I've already tried 0px styling for the back of the card but that doesn't stop the front side padding
I have no idea on how to get {{FrontSide}} on the back of the card to ignore front side CSS styling
3 Comments
megane_kun@lemm.ee · 1 pts · 1y
I'll probably just wrap the entire back of the card with a
<div id='back'>tag.As a more concrete example, let's say the front template of the card is something like this:
The template for the back of the card would be:
And the CSS would be something like:
That is, by adding a
backsideclass you can make sure that you can add the different CSS styling you want.x4740N@lemm.ee · 1 pts · 1y
I already know about class and id and am using them in the code
I'm using
And wrapping both the front and back sides of the card with p elements
Would it be helpful to see my code?, because I'm currently not at my PC and don't even know if I'm logged into lemmy on there
megane_kun@lemm.ee · 1 pts · 1y
Yeah, it'd be very helpful if I can see your code: front template, back template, and the css.