External style sheets

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default External style sheets

    Well youd think this would be pretty straight forward but no matter what i do i
    dont get any changes in my app. I have tried defining the style sheet and then
    asigning the style values using "styleName" but nothing..
    My application uses the <mx:Style tag as stated in the docs, not sure what im
    doing wrong, here is the chunk from my otherwise working app that uses the
    style sheet.
    -------------------------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    styleName="App">
    <mx:Style source="style.css"/>


    and here is the style sheet, style.css
    -------------------------------------------------------------------------------
    App {
    color: #000000;
    backgroundGradientColors: #c0c0c0, #ffffff;
    backgroundImage: 'img/background.png';
    }


    Hopefully im just dumb, please help this is the final step i need to finish my
    app.. :(

    leotemp Guest

  2. Similar Questions and Discussions

    1. External Style Sheets in Editable Region
      Hi all, When I include links to external stylesheets in the 'editable' section of my template created html page, Contribute does not load them...
    2. Style Sheets and Transitions
      I am not sure this is an appropriate question here, but I am using CSS to basically change an element on the screen based on a "timer" I would like...
    3. Cascading Style Sheets
      Hi, I am writing a web based application in VB.Net. A lot of the forms in the applicaiotn have grids (datagrids) in them. I would like to have...
    4. Style Sheets
      Can anyone tell me what a good dreamweaver book is on learning CSS? What do's and don'ts can you advise me in? Kelly
    5. Using external style sheets
      You shouldn't have any trouble. What does the URL of the stylesheet link look like? -- HTH, Kevin Spencer ..Net Developer Microsoft MVP...
  3. #2

    Default Re: External style sheets

    leotemp wrote:
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    > styleName="App">
    > <mx:Style source="style.css"/>
    >
    >
    > and here is the style sheet, style.css
    > -------------------------------------------------------------------------------
    > App {
    > color: #000000;
    > backgroundGradientColors: #c0c0c0, #ffffff;
    > backgroundImage: 'img/background.png';
    > }
    So the style definition you created would apply to <mx:app></mx:app>
    tags. The easiest way to fix this is to change your css definition to:

    Application {
    color: #000000;
    backgroundGradientColors: #c0c0c0, #ffffff;
    backgroundImage: 'img/background.png';
    }
    Josh Johnson Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139