×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    2

    how can change xhtml font size?

    hellow,i met a very troublesome problem that how can change font size at xhtm of wap2.0 and the test client was nokia3250.script follow as "<font size=4>"

  2. #2
    Registered User
    Join Date
    Jun 2004
    Location
    HEL
    Posts
    36

    Re: how can change xhtml font size?

    Cheers,

    Jamie

    # Any form of employment is strictly prohibited ......

  3. #3
    Registered User
    Join Date
    Jun 2006
    Location
    England
    Posts
    49

    Re: how can change xhtml font size?

    <font> tags are deprecated in xhtml, try not to use them.

    I don't think Xhtml mobile even supports it.

    Try the methods posted below or use css styles 'font-size:' either inline in your tags or in a style sheet.

  4. #4
    Registered User
    Join Date
    Jul 2006
    Location
    taiwan
    Posts
    3

    Re: how can change xhtml font size?

    Thanks so much for pointing this out. will gonna try the css side

    isulong seoph

  5. #5
    Registered User
    Join Date
    Jul 2006
    Posts
    1

    Re: how can change xhtml font size?

    have you succeeded to change the size of the font in your mobile?

    it doesnt matter what method i try, the font size stays the same on my mobile screen, even though it is changing in explorer or mozilla.

    i dont understand why but if i use css i can change the color of font like this:
    style="color:red"
    but when i try to change size the same way it has no effect:
    style="font-size:10px"

    i tried different mobile phones but the size remains the same. is there some limitations in changing size or the problem is in my code?

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: how can change xhtml font size?

    Most likely a device (browser) limitation (not supporting that syle, or the device not having a/the font available in the size you wish; with bitmap fonts the sizes are fixed, whereas with scaleable/vector fonts they aren't).

  7. #7
    Registered User
    Join Date
    Mar 2006
    Posts
    2

    Re: how can change xhtml font size?

    I had accounted for this problem use css,yet my agent was NOKIA3250.i suspect that it have relation to the agent.you can try it as follow code
    <style>
    a{color:#0000FF;}
    a:hover{color:#FF0000;}
    a:link{color:#0000FF;}
    a:visited{color:#0000FF;}
    a:active{color:#FF0000;}
    body,td{font-size: 12px;background-color: #D9E9C8; margin: 0px; padding: 0px;line-height:25px;}
    </style>
    good luck

  8. #8
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    Re: how can change xhtml font size?

    Try using the following sample font-size code in CSS:

    #code
    <style type="text/css">
    .small { font-size:small; }
    .medium { font-size:medium; }
    .large { font-size:large; }
    </style>
    #code

    good luck.

Similar Threads

  1. to change the font size of lable in ceiklabel
    By amitagrawal78 in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-08-29, 14:43
  2. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15
  3. Change font size in lists (MIDP1.0)
    By sods in forum Mobile Java General
    Replies: 1
    Last Post: 2003-07-24, 17:09
  4. any way to change font size on Forms?
    By mobidev in forum Mobile Java General
    Replies: 2
    Last Post: 2003-03-12, 05:46
  5. how do you change the size of the font?
    By Nokia_Archive in forum Symbian
    Replies: 1
    Last Post: 2002-05-31, 14:42

Posting Permissions

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