<div class="borders"><div><div><div><div><div><div><div> Содержание блока </div></div></div></div></div></div></div></div>
.borders { background: #666 url(t.gif) top repeat-x; } .borders div { background: url(r.gif) right repeat-y; } .borders div div { background: url(b.gif) bottom repeat-x; } .borders div div div { background: url(l.gif) left repeat-y; } .borders div div div div { background: url(t-l.gif) top left no-repeat; } .borders div div div div div { background: url(t-r.gif) top right no-repeat; } .borders div div div div div div { background: url(b-r.gif) bottom right no-repeat; } .borders div div div div div div div { background: url(b-l.gif) bottom left no-repeat; }
.borders{background:#666 url('http://mpchat.com/3axig/img/ramka/t.gif');top repeat-x;}.borders div{background:url('http://mpchat.com/3axig/img/ramka/r.gif');right repeat-y;}.borders div div{background:url('http://mpchat.com/3axig/img/ramka/b.gif');bottom repeat-x;}.borders div div div{background:url('http://mpchat.com/3axig/img/ramka/l.gif');left repeat-y;}.borders div div div div{background:url('http://mpchat.com/3axig/img/ramka/t-l.gif');top left no-repeat;}.borders div div div div div{background:url('http://mpchat.com/3axig/img/ramka/t-r.gif');top right no-repeat;}.borders div div div div div div{background:url('http://mpchat.com/3axig/img/ramka/b-r.gif');bottom right no-repeat;}.borders div div div div div div div{background:url('http://mpchat.com/3axig/img/ramka/b-l.gif');bottom left no-repeat;}
.borders { background: #666 url('http://mpchat.com/3axig/img/ramka/t.gif') top repeat-x; } .borders div { background: url('http://mpchat.com/3axig/img/ramka/r.gif') right repeat-y; } .borders div div { background: url('http://mpchat.com/3axig/img/ramka/b.gif') bottom repeat-x; } .borders div div div { background: url('http://mpchat.com/3axig/img/ramka/l.gif') left repeat-y; } .borders div div div div { background: url('http://mpchat.com/3axig/img/ramka/t-l.gif') top left no-repeat; } .borders div div div div div { background: url('http://mpchat.com/3axig/img/ramka/t-r.gif') top right no-repeat; } .borders div div div div div div { background: url('http://mpchat.com/3axig/img/ramka/b-r.gif') bottom right no-repeat; } .borders div div div div div div div{ background: url('http://mpchat.com/3axig/img/ramka/b-l.gif') bottom left no-repeat; }
.box { border-radius: 5px; }