Aligning the right side of an image with the left side of a grid col
I'd like to align the right hand side of the image with grid-col-1
14 Replies
thats what it looks like atm, I'd like it to be the opposite of the previous image
thats the code
Wouldn't it be easier for you to use flex for this? I see you flip the order too, with flex you can just reverse the order and change the round corners and you are done.
Use the
flex flex-col
, first place the smaller box with some top and bottom margins (to make it smaller), then the box with the image and you should be done.
You can set grow-1
to the first box to take the remaining space, but with w-X
you will have more control.omg
so I shouldn't start the image in the other column but instead flip the ordeR?
wouldnt that result in the same issue ?
I don't want to start the image, I want to end the image in a col
if that makes sense
I think you can use z-index for this
uh
how ?
I dont want to change the layer of anything
I only want to move the image so the end of it is aligned with the col
col
Container then put both inside and stack them on top each other with z index
as oppose d the start
check previous message
Oh you already have a code you just to to change the position?
yea
Ok
Okay i think you problem is from the div holding the image
In front-end to debug i think colours will help you alot
as you can see here the div container holding the image has less room to move
it is supposed to be relative to the blue container
set flipped to true
that image is fine
flipped = false is fine
its when flipped = true
is when there is an issue
i fucking did it
ty lopen
Congrats