html - How I can overlap a DIV on to other DIV? -


i trying make overlapping div onto other visually . trying

{ position:absolute; top:-10px; } 

in css, found top attribute not working in firefox. dear fellas, how that? please me codes or examples. thx in advance

here's easy way

css

.top {     position: relative; } .topabs {     position: absolute; } 

html

<div class='top'>     <div class='topabs'>         i'm top div     </div> </div> <div>no styles, frowns :(</div>​ 

the relative positioned div collapses there no contents, causing coordinates 0,0 coordinates of absolute positioned div of div underneath.

fiddle

http://jsfiddle.net/y5szw/


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -