Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: font size

  1. #1
    New Coder
    Join Date
    Jul 2012
    Posts
    22
    Thanks
    6
    Thanked 0 Times in 0 Posts

    font size

    Hi

    i have a simple question i have this code

    PHP Code:
         <input type=hidden name=ItemID value="<?=$ItemID?>">
    and i want to put the font size tag in it to conrtol the size of the font

    here is the full code

    PHP Code:
     <td align=center><hr size="3"></td>
      </tr>
      <tr> 
        <td align=center><form method=post action="rate.php">
            <input type=hidden name=ItemID value="<?=$ItemID?>">

  • #2
    New Coder
    Join Date
    Jul 2012
    Posts
    22
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ricolding View Post
    Hi

    i have a simple question i have this code

    PHP Code:
         <input type=hidden name=ItemID value="<?=$ItemID?>">
    and i want to put the font size tag in it to conrtol the size of the font

    here is the full code

    PHP Code:
     <td align=center><hr size="3"></td>
      </tr>
      <tr> 
        <td align=center><form method=post action="rate.php">
            <input type=hidden name=ItemID value="<?=$ItemID?>">
    I MEAN I WANT TO CONTROL ItemID FONT SIZE

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    PHP has no control of rendering. That's HTML/CSS's job. Simply give the input a style or class and go from there.

  • Users who have thanked Fou-Lu for this post:

    ricolding (09-05-2012)

  • #4
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,911
    Thanks
    15
    Thanked 227 Times in 227 Posts
    Put in CSS, that's where the style stuff should be.

    #ItemID {font-size:24px}

    Be careful styling form elements, you may end up styling the whole form, because changing one item's style may negate it's 'natural' style.

  • Users who have thanked DrDOS for this post:

    ricolding (09-05-2012)

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,623
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Quote Originally Posted by DrDOS View Post
    Put in CSS, that's where the style stuff should be.

    #ItemID {font-size:24px}
    But before doing that your input needs an ID:

    Code:
    <input id="ItemID" …>
    However, I see that your input is of type “hidden” so I’m not sure what you’re trying to achieve here since nothing is seen anyway?

  • Users who have thanked VIPStephan for this post:

    ricolding (09-05-2012)

  • #6
    New Coder
    Join Date
    Jul 2012
    Posts
    22
    Thanks
    6
    Thanked 0 Times in 0 Posts
    thanks


  •  

    Posting Permissions

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