The purpose of this example is to call out explicitly the CSS used to create the look and feel of the Color Picker Control so that you may more easily modify it in your own implementations. In the description below, the full CSS for Color Picker is displayed.
YUI controls that support "skinning" generally have two levels of CSS: one that is core to the control and its functioning and another that is purely presentational. As a rule, you should avoid changes that affect the core CSS for a skinned control; rather, you should modify the presentation of a control by building upon (or replacing) its skin-level CSS. For more information about the skinning of YUI controls, please review our skinning reference article which goes into much more detail about how skins are created and how they operate.
The Color Picker Control is a skinned control whose CSS is entirely presentational; that is, the Color Picker has no "core" CSS but only a skin-level CSS. The CSS for the default YUI Sam Skin is displayed below. To modify the presentation of your Color Picker instance, add rules that override those you see here or use this CSS block as a starting point for creating your own custom Color Picker skin.
You can load the necessary JavaScript and CSS for this example from Yahoo's servers. Click here to load the YUI Dependency Configurator with all of this example's dependencies preconfigured.
Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Copyright Policy - Job Openings