Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 8, 2006, 6:34 am
rate this thread
typical table cell entry:-
<td align=center width=$col6>";
if($cweb[$i] != "")
echo "<a href=\"http://$cweb[$i]\">$cweb[$i]</a><br>"; plus lots more
within the td.
Although I can use CSS on cells in the header row, it appears as though the
echo element prevents me from applying an inline CSS style to this cell/td.
Is this expected behaviour?
Is there any way I can apply an inline CSS style to the cell?
On a related matter, how would I apply a CSS style to the hyperlink entry in
the above example?
I am reasonably familar with HTML and CSS, but am lost in this PHP.
Also what is the significance of the \ after the a href=
Re: Newbie query
No, PHP makes a HTML page, the same css rules apply on your "generated" page
as if you'd written the whole thing in HTML yourself.
So, the normal way.
It escapes the following ", else your string would end, and you leave PHP
searching for the (illegal) constant "http://$cweb[$i]"