Skip to content

Pixel-perfect alignment for picture element card #444

Closed Answered by GeoffreyFrogeye
GeoffreyFrogeye asked this question in Q&A
Discussion options

You must be logged in to vote

A good night of sleep made me realize I could do this:

    style:
      top: '-10px'
      left: 0
      width: 100%
      height: calc(100% + 15px)

And it does the same effect as changing the CSS rules with the dev tools. It's a bit of a hack I guess, but I'm fine with it!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dbuezas
Comment options

Answer selected by GeoffreyFrogeye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants