CSS за таблица

Eто ти html

Код:
<div class="sidebox">
	<div class="boxhead"><h2>Заглавие</h2></div>
	<div class="boxbody">
		<p>Текст :D.</p>
		<p>Нещо си.</p>
	</div>
</div>

Ето и CSS

Код:
.sidebox {
	margin: 0 auto; /* center for now */
	width: 17em; /* ems so it will grow */
	background: url(sbbody-r.gif) no-repeat bottom right;
	font-size: 100%;
}
.boxhead {
	background: url(sbhead-r.gif) no-repeat top right;
	margin: 0;
	padding: 0;
	text-align: center;
}
.boxhead h2 {
	background: url(sbhead-l.gif) no-repeat top left;
	margin: 0;
	padding: 22px 30px 5px;
	color: white; 
	font-weight: bold; 
	font-size: 1.2em; 
	line-height: 1em;
	text-shadow: rgba(0,0,0,.4) 0px 2px 5px; /* Safari-only, but cool */
}
.boxbody {
	background: url(sbbody-l.gif) no-repeat bottom left;
	margin: 0;
	padding: 5px 30px 31px;
}

А ето ти изображението
sbhead-l.gif

sbbody-l.gif
 

Back
Горе