×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    27

    CSS style after application was started

    Hi, i am beginner in web programming and may be my question is simple but... i need help..
    in widget a have a table and for each cell default style by css is, for example:

    #menuTable td {
    width: 50%;
    height: 80px;
    font-size: 80%;
    font-weight: bold;
    text-align: center;
    }

    #menuTable td img {
    width: 50px;
    height: 50px;
    }
    after i click on any cell in the table a set for this cell new style:

    .disableItem {
    font-size: 60%;
    font-weight: normal;
    }

    .disableItem > img {
    opacity: 0.5;
    }
    by the: setAttribute("class", "disableItem");

    When i run widget in Apana studio all works fine... but when start on emulator or device... the styles which i set after than it was started - not works !
    please help...

    and another one question..
    font-size: 60%;
    font-weight: normal;
    not working...
    only opacity for image forking for new style...

    thank you.

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: CSS style after application was started

    Hi aisaxi,

    can you post the HTML code you're using in your widget?

    Also, please note that the 'opacity' CSS attribute is not supported in WRT widgets.

    About the last question, could you please clarify it a bit?

    Thanks,
    Pit

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    27

    Re: CSS style after application was started

    Hi Pit,

    Thanks for your response...
    But i am a little bit confused. You say that 'opacity' CSS attribute is not supported in WRT Widget... but how it forks in Guarana lib ? for example: iconicmenu ? Or there is no relations between Guarana lib and WRT widget ? i found 'opacity' attribute in guarana lib css file and thought that it will be work in widget. As i understand guarana lib is just a javascript wrapper for objects.

    And another one question, where i can found information about which attributes supported by the WRT widgets ?
    May be i just use not supported attributes, as 'opacity' in my code.

    Thank you.

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: CSS style after application was started

    Hi aisaxi,

    you can obtain a semi-transparent effect by using PNG24 images. You can find more details here:

    http://library.forum.nokia.com/index...0D63F0CF0.html

    Hope it helps,
    Pit

  5. #5
    Registered User
    Join Date
    Jan 2007
    Posts
    27

    Re: CSS style after application was started

    Hi,

    Thanks a lot.

Similar Threads

  1. CSS Style?
    By hch703 in forum Tools and SDK Feedback (Closed)
    Replies: 1
    Last Post: 2009-10-22, 03:38
  2. Replies: 3
    Last Post: 2009-01-08, 10:49
  3. CSS inline Style
    By FHSG in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2005-01-03, 11:15
  4. Designing a J2ME application with CSS
    By enough in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-08-09, 20:29
  5. GMS style Grid Application with few modifications
    By mihirrath in forum Symbian C++
    Replies: 0
    Last Post: 2003-06-05, 10:14

Posting Permissions

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