Code:
function OpenTable($title = "title", $tablewidth = "") {
global $tableopen, $siteurl;
if ($tableopen) return;
if($tablewidth !="") $stylewidth = "style=\"width: ".$tablewidth."px;\"";
else $stylewidth = '';
echo "<div class=\"mainbox\" ".$stylewidth."> ";
echo "<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
echo "<div class=\"main2\"> ";
$tableopen = true;
}
function CloseTable() {
global $tableopen, $siteurl;
if (!$tableopen) return;
echo "</div></div></div>";
$tableopen = false;
}
Code:
div.main2 {
background:url(pics/b1.png) repeat-x;
}
i don't get what i am doing wrong