Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{style}#main {
  
  height:100px;
  overflow:hidden;
  /*указать фон*/
}
#img{
  width:100px;
  height:100px;
  background-color:#f6f6f6;
  position:relative;
  z-index:1;
}
#text{
  position: relative;
  top:-50px;
  z-index:2;
  width:100px;
  height:0px;
}{style}


{html}

<div id="main">
	<img id="img" src="http://www.teamlead.ru/download/attachments/41943234/pure.png"  alt=""/>
	<div id="text">тут текст</div>
</div>

{html}