help how to color the echo output
Moderator: General Moderators
help how to color the echo output
need help
how can i color the output of the following code to any color i want????
<html>
<body>
<?php
echo "Roses are red";
?>
</body>
</html>
how can i color the output of the following code to any color i want????
<html>
<body>
<?php
echo "Roses are red";
?>
</body>
</html>
- greyhoundcode
- Forum Regular
- Posts: 613
- Joined: Mon Feb 11, 2008 4:22 am
Re: help how to color the echo output
Little bit of CSS could do the trick
Re: help how to color the echo output
<span style="color:#ff0000;">Roses Are Red</span>
-
Still Learning
- Forum Commoner
- Posts: 25
- Joined: Tue Jan 27, 2009 3:57 pm
- Location: Philadelphia
Re: help how to color the echo output
You could also just use simple html inside the echo.vin_akleh wrote:need help
how can i color the output of the following code to any color i want????
<html>
<body>
<?php
echo "Roses are red";
?>
</body>
</html>
<?php echo "<font color=\"#FF3336\">Roses are red</font>";
Here's a link to the color codes too....
http://html-color-codes.com/
Re: help how to color the echo output
thanks for the help
Re: help how to color the echo output
Or without escape quotes:Still Learning wrote: <?php echo "<font color=\"#FF3336\">Roses are red</font>";
Code: Select all
<?php echo '<font color="#FF3336">Roses are red</font>'; ?>-
Still Learning
- Forum Commoner
- Posts: 25
- Joined: Tue Jan 27, 2009 3:57 pm
- Location: Philadelphia
Re: help how to color the echo output
Cool. I help someone and I learn something new at the same time. That's nice to know.socket1 wrote:Or without escape quotes:Still Learning wrote: <?php echo "<font color=\"#FF3336\">Roses are red</font>";
Code: Select all
<?php echo '<font color="#FF3336">Roses are red</font>'; ?>
Re: help how to color the echo output
The font tag is old html.Still Learning wrote:Cool. I help someone and I learn something new at the same time. That's nice to know.socket1 wrote:Or without escape quotes:Still Learning wrote: <?php echo "<font color=\"#FF3336\">Roses are red</font>";
Code: Select all
<?php echo '<font color="#FF3336">Roses are red</font>'; ?>