Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How can I define font size in PHP page?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-07-2009
Member
 
Join Date: May 2008
Posts: 24
How can I define font size in PHP page?
  

Hi,

How can I define font size in PHP page? Please help me.
I know the standard <font size="xx"> </font> but it don't work.
How can I change the size of font?

Thanks

Reply With Quote
  #2  
Old 10-07-2009
Member
 
Join Date: Aug 2008
Posts: 90
Re: How can I define font size in PHP page?

Do you have CSS?
If yes then please try CSS to control & change the font size.

Code:
<span style="font-size: 14px;"> Text To Change </span>
Typically, in style.css there will be one or more lines specifying the font size, like:

Code:
FONT            {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
TD              {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
BODY            {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
P               {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
DIV             {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
Reply With Quote
  #3  
Old 10-07-2009
Member
 
Join Date: Oct 2008
Posts: 37
Re: How can I define font size in PHP page?

Hi,

I want to change the font size in Index.php page how to do it?
Reply With Quote
  #4  
Old 10-07-2009
Member
 
Join Date: Nov 2008
Posts: 97
Re: How can I define font size in PHP page?

You simply need to do this kind of thing:

Code:
echo "<font size=18>XXXX</font>";
echo "<font size=12>ABC</font>";
http://www.w3.org/TR/REC-CSS1/
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How can I define font size in PHP page?"
Thread Thread Starter Forum Replies Last Post
How to design font size in CSS little-Jacqueline Software Development 5 23-02-2010 12:38 AM
Font size Bullfrog Windows Software 4 17-11-2009 06:36 PM
Font & font size changed for menu box!! got2balls Customize Desktop 5 20-03-2009 06:35 PM
How to define Array size dynamically softte Software Development 3 28-01-2009 09:44 PM


All times are GMT +5.5. The time now is 11:15 PM.