Results 1 to 4 of 4

Thread: How can I define font size in PHP page?

  1. #1
    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

  2. #2
    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}

  3. #3
    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?

  4. #4
    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/

Similar Threads

  1. How to design font size in CSS
    By little-Jacqueline in forum Software Development
    Replies: 5
    Last Post: 23-02-2010, 12:38 AM
  2. Font size
    By Bullfrog in forum Windows Software
    Replies: 4
    Last Post: 17-11-2009, 06:36 PM
  3. Font & font size changed for menu box!!
    By got2balls in forum Customize Desktop
    Replies: 5
    Last Post: 20-03-2009, 06:35 PM
  4. How to define Array size dynamically
    By softte in forum Software Development
    Replies: 3
    Last Post: 28-01-2009, 09:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •