Hoi,

Ik heb de onderstaande pagina gemaakt,
nou wil ik eigenlijk dat ik een mijn css hebben dat ik het kan verandere in 1 keer in plaats van bij iedere <table width="90%" bgcolor="#333333"> de bgcolor te verandere.

Ik ben er mee bezig geweest maar het wil neit echt lukken.


-----------
<?php
include("siteconfig/config.php");

function mainpage(){
//Echo main table
echo'<table width="90%" bgcolor="#333333">';
echo'<td width="90%"><div align="left"><font class="menuTitle">Lost Your Password?</font></div></td>';
echo'</table><br>';

//Echo username
echo'<table width="90%" bgcolor="#666666">';
echo'<td width="45%"><div align="left"><font class="menuText">Username:</font></div></td>';
echo'<td width="45%"><div align="left"><font class="menuText"><input type="text" name="name" size="18" maxlength="35" alt="name"></font></div></td>';
echo'</table>';

//Echo e-mail
echo'<table width="90%" bgcolor="#666666">';
echo'<td width="45%"><div align="left"><font class="menuText">E-Mail Addres:</font></div></td>';
echo'<td width="45%"><div align="left"><font class="menuText"><input type="text" name="name" size="18" maxlength="75" alt="name"></font></div></td>';
echo'</table>';

//Echo submit
echo'<table width="90%" bgcolor="#333333">';
echo'<td width="90%"><div align="center"><font class="menuTitle"><input type="submit" name="Submit" value="Request Password Now!" /></font></div></td>';
echo'</table>';
}

include("theme/temp.php");
?>
maak in je css bestand

.tabel {background-color: #000000;}

en in je tabel bv.

<table width="90%" bgcolor="#666666" class="tabel">


dat moet volgens mij lukke

Reageren