Floating an Image Outside a Container

.floating-image
One of my recent issues was that I needed to extend an image outside a DIV container, and spill out into another one, like is shown in the picture. I was able to accomplish this by manipulating the margin values in CSS as such:

#div {
margin-right:-60px;
}

You may need to adjust the top/bottom to achieve what you want. In order for things to work right in Internet Explorer, you will need to add this in the image tags:
style=”float:right;” src….

Explore posts in the same categories: Coding, Lessons Learned

Comments are closed.



daily forex signals | persoonlijke beveiliging | stag party ideas