bluedollar
Programmer
I have created a website and have hard coded all the formatting into the HTML, what I want to do is use css to achieve what I am doing at the moment. However I am having problems with text that is displayed in tables, eg:
================================================
NON CSS
echo'<P>Dates: <br><br> <table border="1">';
echo'<tr><th bgcolor="#999999"> Start Date:</th><td>'.$date_start[2].'/'.$date_start[1].'/'.$date_start[0].'</td></tr>';
echo'</table>';
===============================================
USING CSS
Does not display the same as:
echo'<style type="text/css">';
echo'<!--';
echo'H2 { background-color: #999999; }';
echo'-->';
echo'</style>';
echo'<P>Dates: <br><br> <table border="1">';
echo'<tr><th><h2>Start Date:</h2></th><td>'.$date_start[2].'/'.$date_start[1].'/'.$date_start[0].'</td></tr>';
echo'</table>';
============================================
The first example shows as:
--------------------------------------
:gggg header ggggg : :
--------------------------------------
g = gray = #999999
The second example shows as:
--------------------------------------
: gggg header ggggg : :
: : :
--------------------------------------
Question
- What can I do to rectify this.
Any help would be greatly apprecaited.
Thanks
Dan
================================================
NON CSS
echo'<P>Dates: <br><br> <table border="1">';
echo'<tr><th bgcolor="#999999"> Start Date:</th><td>'.$date_start[2].'/'.$date_start[1].'/'.$date_start[0].'</td></tr>';
echo'</table>';
===============================================
USING CSS
Does not display the same as:
echo'<style type="text/css">';
echo'<!--';
echo'H2 { background-color: #999999; }';
echo'-->';
echo'</style>';
echo'<P>Dates: <br><br> <table border="1">';
echo'<tr><th><h2>Start Date:</h2></th><td>'.$date_start[2].'/'.$date_start[1].'/'.$date_start[0].'</td></tr>';
echo'</table>';
============================================
The first example shows as:
--------------------------------------
:gggg header ggggg : :
--------------------------------------
g = gray = #999999
The second example shows as:
--------------------------------------
: gggg header ggggg : :
: : :
--------------------------------------
Question
- What can I do to rectify this.
Any help would be greatly apprecaited.
Thanks
Dan