Return to Snippet

Revision: 41376
at February 20, 2011 02:03 by shodan_uk


Updated Code
.module {
  position: relative;
}

.module-fg {
  position: relative;
  z-index: 20;
}

.module-bg {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.module-bg-hd,
.module-bg-ft {
  left: 0;
  position: absolute;
  width: 100%;
}

.module-bg-hd {
  height: 10px;
  top: 0;
}

.module-bg-ft {
  bottom: 0;
  height: 10px;
}

/* IE6 compatibility nastiness */

* html .module {
  zoom: 1;
}

* html .module-bg {
  height: expression(this.parentNode.clientHeight+'px');
}

Revision: 41375
at February 17, 2011 04:10 by shodan_uk


Updated Code
.module {
  position: relative;
}

.module-fg {
  position: relative;
  z-index: 20;
}

.module-bg {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.module-bg-hd,
.module-bg-ft {
  left: 0;
  position: absolute;
  width: 100%;
}

.module-bg-hd {
  height: 10px;
  top: 0;
}

.module-bg-ft {
  bottom: 0;
  height: 10px;
}

Revision: 41374
at February 17, 2011 03:59 by shodan_uk


Initial Code
.module {
  position: relative;
}

.module-fg {
  position: relative;
  z-index: 20;
}

.module-bg {
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.module-bg-hd,
.module-bg-ft {
  left: 0;
  position: absolute;
  width: 100%;
}

.module-bg-hd {
  height: 10px;
  top: 0;
}

.module-bg-ft {
  bottom: 0;
  height: 10px;
}

Initial URL


Initial Description


Initial Title
Simple module css

Initial Tags
css, module

Initial Language
CSS