Page 1 of 1

using css in echo text output

Posted: Tue Sep 23, 2008 5:34 pm
by ringartdesign
I'd like the$quote section of this statement to output a bold, 28 pt font in lime green. I'd also like the "per month" to be in the same color green but 14 pt and not bold. For some reason this statement doesn't work:

echo "<p style="font-size:28px;color:99CC00;">$".$quote."</p><br>per month";

Thanks!!

Re: using css in echo text output

Posted: Tue Sep 23, 2008 5:54 pm
by marcth
If you want to do HTML, then do HTML :)

Code: Select all

 
<p>
  <span style="font-size:28px; color:99CC00;">$<?= $quote?></span> per month
</p>
 

Re: using css in echo text output

Posted: Tue Sep 23, 2008 5:56 pm
by califdon
ringartdesign wrote:I'd like the$quote section of this statement to output a bold, 28 pt font in lime green. I'd also like the "per month" to be in the same color green but 14 pt and not bold. For some reason this statement doesn't work:

echo "<p style="font-size:28px;color:99CC00;">$".$quote."</p><br>per month";

Thanks!!
Try:

Code: Select all

echo "<p style='font-size:28px; color:#99CC00;'>$quote<br />";
echo "<span style='font-size:14px;'>per month</span></p>";
 

Re: using css in echo text output

Posted: Tue Sep 23, 2008 5:59 pm
by ringartdesign
Thank you it works perfectly!!!