Use hyphens instead of camel case, so e.g.

border-color
not
borderColor

Camel case is only for changing things programaically.

________________________________
From: Takeshita Shoichiro <jl03...@gmail.com>
Sent: Thursday, November 7, 2019 10:27:29 AM
To: users@royale.apache.org <users@royale.apache.org>
Subject: Unknown property errors with CSS file

Basic question about CSS file.

The following CSS file is claimed with 9 errors. Only color property is 
accepted.  What's the problems?  I'm using VS Code.
And mxml specifies this CSS as follows:

<fx:Style source = "Style.css" />

Thanks for your help in advance.
-----------------------------------------------------------------------------------------------------------------------------

/* CSS file */
@namespace s 
"library://ns.apache.org/royale/spark<http://ns.apache.org/royale/spark>";
@namespace mx 
"library://ns.apache.org/royale/mx<http://ns.apache.org/royale/mx>";

.heading {
   fontFamily: Arial, Helvetica, sans-serif;
   fontSize: 17px;
   color: #9b1204;
   textDecoration:none;
   fontWeight:normal;
}

.button {
   fontWeight: bold;
}

.container {
   cornerRadius :10;
   horizontalCenter :0;
   borderColor: #777777;
   verticalCenter:0;
   backgroundColor: #efefef;
}

--
Shoichiro Takeshita
武下 祥一郎

Reply via email to