Position an Image Outside of Its Container

14 Jun, 2009  |  Written by maolana  |  under Health & Fitness, Programming

I have some problem when doing CSS positioning between header image and the image under it. The problem is the image look cutting off.

After search on Google I got solution from Stack Overflow blog.

The solution is so simple we only have to put a relative position:

position: relative;
top: -Xpx;
z-index: 99;

Where -X is however much it takes to get it to peek out of the DIV.

Now my header looked perfect now. :)

Bookmark and Share

No Responses so far | Have Your Say!

Leave a Feedback

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>




Memulai Bisnis

↑ Grab this Headline Animator