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!!
using css in echo text output
Moderator: General Moderators
-
ringartdesign
- Forum Newbie
- Posts: 21
- Joined: Wed Sep 10, 2008 10:11 am
Re: using css in echo text output
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
Try: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!!
Code: Select all
echo "<p style='font-size:28px; color:#99CC00;'>$quote<br />";
echo "<span style='font-size:14px;'>per month</span></p>";
-
ringartdesign
- Forum Newbie
- Posts: 21
- Joined: Wed Sep 10, 2008 10:11 am
Re: using css in echo text output
Thank you it works perfectly!!!