Page 1 of 1

In need of help with php echo output css style

Posted: Fri Oct 07, 2005 9:31 am
by mhouldridge
Hi,

I am trying to output the following code into css formatted text. Here is what I have, unfortunately it is not working....

Code: Select all

echo "<class=\"standard\"><b>Title: ";

               echo "<class=\"standard\">".$myrow['title']."";

               echo "</b><br>On: <i>";

               echo $myrow['dtime'];

               echo "</i><hr align=left width=160>";

               echo "<class=\"standard\">'".$myrow['text1']."'";

As you can see, I have tried this on the echo "<class=\"standard\">".$myrow['title'].""; ----- that doesnt do out though. I have also added the css link to the page just in case.

Posted: Fri Oct 07, 2005 9:44 am
by feyd
css is an added attribute to an existing tag, it does not have a magical tag of it's own like you are trying to use. Try

Code: Select all

echo '<span class="standard">';

// your content here

echo '</span>';
instead..