Jump to content

[SOLVED] Small problem - please help me


dumbguru

Recommended Posts

Hello,

 

I'm not really good at php but I'm trying :)

 

The problem is that I have this code:

 

function doNavBar2() {
?>
<p>
<div style="background:#000000;padding:5px;">
<a href="index.php">Home</a> |
<a href="faq.php">FAQ</a> |
<a href="login.php">Members Login</a> |
</div>
</p>
<?php
}

 

Now I need to some how control the color of the text,

how can I control the color of "Home""faq""members login"

 

Thanks for your time,

 

regards,

Link to comment
https://forums.phpfreaks.com/topic/126563-solved-small-problem-please-help-me/
Share on other sites

Use CSS?

 

Or

 

function doNavBar2() {
?>
<p>
<div style="background:#000000;padding:5px;">
<a href="index.php" style="color:#333333;">Home</a> |
<a href="faq.php" style="color:#333333;">FAQ</a> |
<a href="login.php" style="color:#333333;">Members Login</a> |
</div>
</p>
<?php
}

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.