I have a div which is like a container and inside of it there are 2 images. One image is on the left side of the div and the other is on the right. My container is Bootstrap's container
Both of them are wrapped with a div, and that div's position
is fixed
.
My problem is that I can't locate the right image to be attached to the right side of the conatiner. I tried the float
and the right
properties but they not give the expected result.
How can I attach div to the right of another div?
:after
pseudo class – Robbicol-md-offset
insiderow
class – Heartwormdiv:after { content: url(linkToImage); }
I'm a little not sure about the syntax, just not sure about how to add images using:after
but I saw the code somewhere here on SO, so if this don't works then try googling on how to insert image using:after
. – Robbi