I’m trying to center the title text on my Alert control. I’m using the following CSS right now:
mx|Alert{
text-align: center;
}
The problem is that the above code centers my alert content as well, not just the title text. What selector do I need to access just the title of the alert control?
Edit:
I’m using the 4.x SDK and Spark.
Code:
Alert.Show();
Use
titleStyleNameto declare a CSS class that can be used to style the title, then add styles to that class:Should work for Spark if I’m not wrong.