How to increase fontsize javascript

Discussion in 'HTML' started by JL, Mar 3, 2009.

  1. JL

    JL Guest

    HI,

    when i write :

    document.getElementById('nom_bateau').style.fontSize ='100px';

    OK but when i write :

    document.getElementById('nom_bateau').style.fontSize ='taille&"px"';

    not works.

    Tanks for help.

    JL
     
    JL, Mar 3, 2009
    #1
    1. Advertising

  2. JL

    JL Guest

    Ben C a écrit :
    > On 2009-03-03, JL <> wrote:
    >> HI,
    >>
    >> when i write :
    >>
    >> document.getElementById('nom_bateau').style.fontSize ='100px';
    >>
    >> OK but when i write :
    >>
    >> document.getElementById('nom_bateau').style.fontSize ='taille&"px"';
    >>
    >> not works.
    >>
    >> Tanks for help.

    >
    > What made you think it would work?
    >
    > style.fontSize = taille + "px";
    >
    > is more the sort of thing you want.



    Tanks for your answer. Its oK.
    JL
     
    JL, Mar 3, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?ZnJlZA==?=

    fontsize/stylesheet problem

    =?Utf-8?B?ZnJlZA==?=, Jun 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    440
    =?Utf-8?B?ZnJlZA==?=
    Jun 9, 2004
  2. Veeresh

    HTML Literal Control & FontSize

    Veeresh, Jun 28, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,344
    Veeresh
    Jun 28, 2004
  3. Tushar
    Replies:
    1
    Views:
    304
    Thomas Weidenfeller
    Feb 14, 2005
  4. Tom Parson
    Replies:
    12
    Views:
    56,597
    Benoit Peltier
    Jan 11, 2006
  5. Samuël van Laere

    Fontsize questions

    Samuël van Laere, Nov 20, 2003, in forum: HTML
    Replies:
    9
    Views:
    416
    Samuël van Laere
    Nov 21, 2003
Loading...

Share This Page