Multiverse Feedback: Cardlist | Visual spoiler | Export | Booster | Comments | Search | Recent activity
Mechanics | Upcoming releases | Skeleton

CardName: Watermarks are on top of card text Cost: r Type: Pow/Tgh: / Rules Text: On Firefox, at least, it seems like the div with a watermark will be layered on top of the card text, which makes it really difficult if not impossible to select the card text with the mouse. Flavour Text: Set/Rarity: Multiverse Feedback None

Watermarks are on top of card text
{r}
 
 
On Firefox, at least, it seems like the div with a watermark will be layered on top of the card text, which makes it really difficult if not impossible to select the card text with the mouse.
Updated on 27 Sep 2013 by Alex

History: [-]

2013-09-23 15:09:01: Circeus created and commented on the card Watermarks are on top of card text

see discussion on ((C28285))

I can't help asking why isn't the watermark just put as the background to the div that contains the rules and flavor text? I assume there's a reason, but if it were possible, it would easily solve this issue.

I know that was my original approach. I think there were problems with the javascript that resizes text to make it fit. I think I've been back to the code once or twice and thought "why isn't this just a background image?", and made it so, and encountered the problem again and gone "oohh, that's why it isn't".

But I should give this another look.

2013-09-23 15:59:26: Alex edited Watermarks are on top of card text

Is it a possibility then to eat least, y'know, layer the text on top of the image instead of the other way around?

2013-09-24 09:58:00: Alex edited Watermarks are on top of card text

Hmmm. I'm sure I tried that before too, but at the moment, it seems like giving the rulestext or rulestextwrapper position:relative and z-index:2 seems to work fine.

I'll make that change and see if we can find any problems with it.

Argh! The fix seems to work locally, but I'm encountering unrelated difficulties when trying to push it up to Heroku :/

2013-09-27 00:48:39: Alex edited Watermarks are on top of card text:

fixed

There you go. Let me know if you see any other oddnesses around watermarks, or around text box resizing.

I think what I tried before was position:absolute, which would have had significant other problems; position:auto doesn't allow z-index to apply; but position:relative seems to hit the sweet spot in between.

Lovely. Seems to work fine!

Add your comments:


(formatting help)
Enter mana symbols like this: {2}{U}{U/R}{PR}, {T} becomes {2}{u}{u/r}{pr}, {t}
You can use Markdown such as _italic_, **bold**, ## headings ##
Link to [[[Official Magic card]]] or (((Card in Multiverse)))
Include [[image of official card]] or ((image or mockup of card in Multiverse))
Make hyperlinks like this: [text to show](destination url)
How much damage does this card deal? Lightning Bolt
(Signed-in users don't get captchas and can edit their comments)