Colour of Text

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
prismb
Forum Newbie
Posts: 8
Joined: Thu Dec 07, 2006 8:12 am

Colour of Text

Post by prismb »

Hello Guys

I want your littal time

Its a quick answer for you

I am writing content on my OsCom. frontpage with this code

<?php echo TEXT_MAIN; ?>

I want to change color of font , I want to make it white so how can i do that.

Plz guide me

I know Its a 5 Sec. job for you guys, plz give me your 5 Sec.

Thanks in Advance :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Code: Select all

<p style="color: #ffffff;"><?php echo TEXT_MAIN; ?></p>
prismb
Forum Newbie
Posts: 8
Joined: Thu Dec 07, 2006 8:12 am

Post by prismb »

Thanks Everah

It really help me

I am new in PHP and Wants to learn it

can you plz tell me what is the best way to start with PHP

is there any Ebook that is good for beginers

I work as programmer in Visual Basic
but i also I have good command on C Language.

Waiting for your reply.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If you have a good grasp of C, PHP is a breeze to pick up. The main hurdle will likely be remember all the basic (and nearly always available) functions PHP has.



.. please don't use "plz."
Z3RO21
Forum Contributor
Posts: 130
Joined: Thu Aug 17, 2006 8:59 am

Post by Z3RO21 »

http://www.php.net and this fine site here is all you need :)
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

You should learn xhtml and css.
hrubos
Forum Contributor
Posts: 172
Joined: Sat Oct 07, 2006 3:44 pm

Post by hrubos »

so, work hard with PHP, you will love it

Enjoy it .
User avatar
Jaxolotl
Forum Contributor
Posts: 137
Joined: Mon Nov 13, 2006 4:19 am
Location: Argentina and Italy

Post by Jaxolotl »

Everah wrote:

Code: Select all

<p style="color: #ffffff;"><?php echo TEXT_MAIN; ?></p>
remember that <p> is a block element and may use upper and under spaces if not defined otherwise with css, maybe in this case would be better to use <span> that is an inline element. and may prevent nested <p> tags

Code: Select all

<span style="color: #ffffff;"><?php echo TEXT_MAIN; ?></span>
Post Reply