Hey @gchristofferson ππ»
I'm not sure if my solution is the elegant one that you're looking for, but what I did is similar. However, instead of using position: relative
I just selected them with :nth-child()
and with transform: translate()
positioned them as necessary. Here, if you need some review check the link.
Cheers πΎ
Marked as helpful
@gchristofferson
Posted
Hey @kens-visuals!
That's perfect! I'm always looking for ways to make my code more succinct like this. Do you know if there is any hit in performance when using transform: translate()
as opposed to using relative positioning? It's probably not significant if there is a difference, but I'm curiousπ€
Hi @gchristofferson ππ»ββοΈ
I'm sure about the performance, but I know for sure that, positioning
things are a lot trickier than, using translate
. Especially position absolute, I'm not discouraging the use of position
, but one should be careful with it π
Marked as helpful
@gchristofferson
Posted
Hey @kens-visuals!
That makes sense, I'm going to default to using translate for moving elements going forward. Thanks again for your feedback!