The APEX_CSS package provides utility functions for adding CSS styles to HTTP output. This package is usually used for plug-in development.
This procedure adds a CSS style snippet that is included inline in the HTML output. Use this procedure to add new CSS style declarations.
APEX_CSS.ADD (
    p_css          IN    VARCHAR2,
    p_key          IN    VARCHAR2 DEFAULT NULL);
Table 5-1 describes the parameters available in the ADD procedure.
| Parameter | Description | 
|---|---|
| 
 
  | 
 The CSS style snippet. For example,   | 
| 
 
  | 
 Identifier for the style snippet. If specified and a style snippet with the same name has already been added the new style snippet will be ignored.  | 
Adds an inline CSS definition for the class autocomplete into the HTML page. The key autocomplete_widget prevents the definition from being included another time if the apex_css.add is called another time.
apex_css.add (
    p_css => '.autocomplete { color:#ffffff }',
    p_key => 'autocomplete_widget' );
This procedure adds the link tag to load a 3rd party css file and also takes into account the specified Content Delivery Network for the application. Supported libraries include: jQuery, jQueryUI, jQueryMobile.
If a library has already been added, it is not added a second time.
add_3rd_party_library_file ( 
    p_library in varchar2, 
    p_file_name in varchar2, 
    p_directory in varchar2 default null, 
    p_version in varchar2 default null, 
    p_media_query in varchar2 default null );
Table 5-2 describes the parameters available in the ADD_3RD_PARTY_LIBRARY_FILE procedure.
Table 5-2 ADD_3RD_PARTY_LIBRARY_FILE Parameters
| Parameters | Description | 
|---|---|
| 
 
  | 
 Use one of the c_library_* constants  | 
| 
 
  | 
 Specifies the file name without version, .min and .css  | 
| 
 
  | 
 Directory where the file   | 
| 
 
  | 
 If no value is provided then the same version Application Express ships is used (optional)  | 
| 
 
  | 
 Value that is set as media query (optional)  | 
The following example loads the Cascading Style Sheet file of the Accordion component of the jQuery UI.
apex_css.add_3rd_party_library_file (
    p_library   => apex_css.c_library_jquery_ui,
    p_file_name => 'jquery.ui.accordion' )
This procedure adds the link tag to load a CSS library. If a library has already been added, it will not be added a second time.
APEX_CSS.ADD_FILE (
    p_name           IN    VARCHAR2,
    p_directory      IN    VARCHAR2 DEFAULT WWV_FLOW.G_IMAGE_PREFIX||'css/',
    p_version        IN    VARCHAR2 DEFAULT NULL,
    p_skip_extension IN    BOOLEAN DEFAULT FALSE
    p_media_query    IN    VARCHAR2 DEFAULT NULL,
    p_ie_condition   IN    VARCHAR2 DEFAULT NULL);
Table 5-3 describes the parameters available in the ADD_FILE procedure.
| Parameter | Description | 
|---|---|
| 
 
  | 
 Name of the CSS file.  | 
| 
 
  | 
 Begin of the URL where the CSS file should be read from. If you use this function for a plug-in you should set this parameter to   | 
| 
 
  | 
 Identifier of the version of the CSS file. The version will be added to the CSS filename. In most cases you should use the default of NULL as the value.  | 
| 
 
  | 
 The function automatically adds ".css" to the CSS filename. If this parameter is set to TRUE this will not be done.  | 
| 
 
  | 
 Value set as media query.  | 
| 
 
  | 
 Condition used as Internet Explorer condition.  | 
Adds the CSS file jquery.autocomplete.css in the directory specified by p_plugin.image_prefix to the HTML output of the page and makes sure that it will only be included once if apex_css.add_file is called multiple times with that name.
apex_css.add_file (
    p_name => 'jquery.autocomplete',
    p_directory => p_plugin.image_prefix );