Jump to content

Change the colour of this output code:


roldahayes

Recommended Posts

If you're trying to show that code on your page but with different colors than the default, you'll need to apply some kind of tag and most likely want to use a class.

 

You probably want to look into using htmlspecialchars() as well if you want to output code in HTML. But this is the CSS forum, so switch to PHP if you're having trouble with that.

 

CSS:

span.red { color: #F00; }

 

HTML:

<?php echo $_POST['<span class="red">radius</span>'], '  miles of ', $_POST['<span class="red">zip</span>']; ?>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.