Home > Flex > Flex Tip of the Day: set border-style to get rounded corners, drop shadow

Flex Tip of the Day: set border-style to get rounded corners, drop shadow

(One in a series of random, daily, useful Flex tips.)

Here’s a quickie. Wondering why your corner-radius style isn’t doing anything? Wondering why you aren’t getting a drop shadow? The answer is you have to set border-style to something (“solid” is a fine choice) in order to see rounded corners or a drop shadow style take effect.

The complete logic is in HaloBorder.as if you really want to see what’s going on. Highly recommended.

Technorati Tags: ,

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
Author: David Coletta Categories: Flex Tags:
  1. May 1st, 2007 at 15:49 | #1

    Great reminder. I can’t tell you how many times I still have to answer this question.

    So much so that I wrote my own post a while back with a quic demo (this was back in Flex 1.5 days), here at http://weblogs.macromedia.com/mc/archives/2005/10/round-cornered.cfm.

    - peter / adobe consulting

  2. May 1st, 2007 at 20:31 | #2

    Great tip!! Saved me a lot of time in debugging an issue on my app. I knew the drop shadow worked only this way but didnt realize so did corner radius.
    sweet !

  3. david
    May 1st, 2007 at 20:56 | #3

    Thanks! Glad it was helpful.

  4. Michael
    October 2nd, 2007 at 07:07 | #4

    Thanks, you’re a life saver! Was pulling out hair!

  1. No trackbacks yet.