how to use css

You must Login before you can answer or comment on any questions.

is it possible to use css in the app? i can't not find any guide in the appcelerator document or guide.

— asked 9 months ago by kent hao
0 Comments

1 Answer

Accepted Answer

CSS requires a DOM. There is no DOM in a Titanium app. So therefor you cannot use CSS to style your Titanium app.

— answered 9 months ago by Anthony Decena
answer permalink
3 Comments
  • thanks for your answer. By the way, in kitchen sink, i found a file called app.jss, there's something simliar to css like:

    @import 'common.jss';
     
    #tabGroup1 {
        barColor:#336699;
    }
     
    .win1 {
        url:'main_windows/base_ui.js';
        titleid:'base_ui_title';
        titleImage:'images/appcelerator_small.png';
    }
     
    #tab1 {
        icon:'images/tabs/KS_nav_views.png';
        titleid:'base_ui_title';
    }
    i'm not sure it's the same thing to css?

    — commented 9 months ago by kent hao

  • It's not although it looks similar. Basically, you can use it to set the properties that Titanium objects expose to split style and logic.

    Nevertheless, you can also use a WebView which contains html pages as you're used to. But then you'll lose the advantages Titanium brings along.

    — commented 9 months ago by Thomas Reinberger

  • i get your points. Thanks a lot

    — commented 9 months ago by kent hao

Your Answer

Think you can help? Login to answer this question!