i'm playing around with pet minion and trying learning flex box with it!! whenever i change the display property to flex, i lose the spacing between the " Minion Name the Minion". I've been trying to figure out how to get it back through things like word spacing, but I can't for the life of me get it to work. I'm probably doing something silly since I'm new to flexbox, so any help is appreciated!
See below! v v v

{
height: 120px;
width: 190px;
display: flex;
align-items: center;
flex-flow: row wrap;
justify-content: center;}
img { height: 64px; width: 64px; margin: 3px; order: -1;}
I'd also love to find a way to completely obliterate the "Blah blah has a minion!" text and put the minion name and whatnot where that is, but I don't think it's possible with how it's currently implemented on the site?
not a big deal though, since im just messing around with flexbox and getting a feel for it!! :) i'm probs using it completely wrong and it's probs easier to accomplish some of this with float but w/e
This is the code I use to get rid of the "Pet has a minion!" text.
{text-indent: -2000px;}
Basically I just shove that line of text out of sight towards the left somewhere. However I have no idea if it'll work with flex since I have no idea what that even is.
I found a cheap hack to do this actually lol. You can see it in action on my mortiking's page.
{ font-size: 0pt; }
b { font-size: 10px!important; }
b:last-of-type::before { content: 'the '; }
br + b { text-transform: uppercase; }
Explanation:
Feel free to run with this, I'd love a line of credit for coding help somewhere if you do though :)
Anyway I'll try and answer your main question but it's not super clear to me why you're using flex here (or what you're trying to accomplish with it) It would help if you could link the profile in question ?
That's why I wanted to ask what you're trying to accomplish by using flex on this element. It's not to say you can't use flex elsewhere, or that this isn't a neat learning opportunity, but I think this particular element isn't well-suited for it.
If you want to continue, one option would be to use the hacks I shared above to select the individual words/phrases and apply hard-coded styles to each. Good luck and I hope this helps!
🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights
Oh, I had forgotten the text-indent trick. I rarely ever mess around with minions tbh other than slapping them in boxes for commissions. >< Thanks for remind me of it LMAO
Thanks for the tip. I'll make sure to credit you if I use it at all.
I wasn't really trying to accomplish anything with it, haha. ;; I was just playing around with the functionality of it, but it's clear I don't really know what I'm doing I guess... ;; It's not actually on any pet or anything though, I was just playing around with it in developers tools. Thank you for the explanation on why it was happening though. I'll probably just try it on something else or stick to what I know, I suppose.