Different colours for accordion

I would like to be able to have different accordion panels in
my site, each using colours relevant to the page topic. So, for
example, all pages about our services would use a green font, all
pages about our research department would use red and so on. I can
adjust the CSS colour scheme but don't know how to apply a
different set of colours for other accordions as they all seem to
pick up from the main CSS.
If it's really simple to do this, please could someone tell
me how. I'm a novice so idiot-proof instructions are necessary!
Many thanks.

Hi Bagheera:
This is a simple trick, but it will need some extra job for
you (it's all
CSS, so don't be afraid)
I think you have two options:
1.- Create different CSS files using the original one
provided by Spry as a
template: You should change the values as desired. This way,
pages about
services would load spry_services.css, pages about research
would use
spry_research.css and so on.
2.- Add a class to the body tag and change the css selectors:
you can use a
single css file where you must duplicate the original
selectors (.eg:
accordionPanelTab should become .services .accordionPanelTab,
.research
.accordioPanelTab... and you can change the properties
there).
The former is a good choice if you want to have you css code
and files as
clear as possible; the latter will work ok with DW templates
HTH
Andres Cayon
Spain Adobe Dreamweaver User Group
http://www.dwug.es
"Bagheera62" <[email protected]>
escribió en el mensaje de
noticias news:gmcagc$b3u$[email protected]..
>I would like to be able to have different accordion
panels in my site, each
> using colours relevant to the page topic. So, for
example, all pages about
> our
> services would use a green font, all pages about our
research department
> would
> use red and so on. I can adjust the CSS colour scheme
but don't know how
> to
> apply a different set of colours for other accordions as
they all seem to
> pick
> up from the main CSS.
>
> If it's really simple to do this, please could someone
tell me how. I'm a
> novice so idiot-proof instructions are necessary!
>
> Many thanks.
>

Similar Messages

  • Setting different colours for different cells in a list

    Hi,
    I was wondering if we could select two cells in a list and have two different colours for each of them.
    For example, if i select the 1st and 9th cells in a list, can i have the first one to be green and the 9th one to be red?

    HI,
    Pls check this.
    http://forums.adobe.com/message/2216445#2216445
    It is for the datagrid but you can made similarly for the List. Let me know if you have any issue.
    with Regards,
    Shardul Singh Bartwal

  • How do I configure my iPhone to show different colours for my two calendars both from separate email accounts, both Exchange.

    How do I configure my iPhone to show different colours for my two calendars both from separate email accounts, both Exchange.

    It does so by default... what's the issue?

  • Can you set different colours for invitees in calendar?

    In calendar on the iphone/ipad can you set any events that you accept from invitees to a different colour so that you can instantly distinguish them from your own events?
    Cheers

    You could choose None in Preferences > General > New Mail Sound and set up a rule for each account in Preferences > Rules as follows:
    If [any/all] of the following conditions are met:
    [Account] [AccountName]
    Perform the following actions:
    [Play Sound] [Sound]
    Problem is, that would cause the sound to be played for junk mail as well — probably not what you want.

  • Can I use different colours for the different user accounts in my iCal?

    I have my own iCal and one for my boss. I need our appointments to show up in different colours so that I can tell at a glance which are mine and which are his. Currently our appointments show up on the same calendar, on top of each other, and both are coloured red.
    Can I change the colour of one of us?

    Thanks. If there are other people invited to the appointment it comes up with this
    So I don't want to 'move' it or cancel the original appointment. is there another way I can, for example, have my boss's appointments all come up green and mine all come up blue......

  • Different colours for 1 calendar

    Hello,
    We sync a google calendar with everyone in our office.
    This calendar contains my private and work related appointments.
    In my iCal (Snow Leopard) I would like to give a different colour to my private and work appointments, is this possible?
    Creating a second calender is not an option, we only want to share 1 calendar with everything in.
    I know this is possible in Outlook, but I'm not a fan of Windows...
    Thx
    Ruben

    Dear Ruben
    I would love to know how you can make some events Private.
    We use ical and sync to Google Calendar, but when I create events in iCal, there is no option to make it private.
    We have created a CalDAV connection to Google Apps Calendar, so any help about why there is no check box for Private would be appreciated.

  • Publish multiple ical calendars with different colours for each calendar

    hi
    i am wanting to publish either multiple iCal calendars or a calendar group online so that the colours are preserved for different calendars. it would seem that the MobileMe published calendars still only support one colour (blue). could someone recommend another method of publishing read only iCal calendars online, preferably free, but i don't mind paying a small amount
    thanks
    nick

    Dear Ruben
    I would love to know how you can make some events Private.
    We use ical and sync to Google Calendar, but when I create events in iCal, there is no option to make it private.
    We have created a CalDAV connection to Google Apps Calendar, so any help about why there is no check box for Private would be appreciated.

  • To make different colours for the columns of ALV report in Grid display.

    Hai Friends,
                       I have created an ALV report in grid display method by using the call function reuse_alv_grid_display.
    I have obtained the report.In that report i want to change the colour of each column.Plz provide the answer with a sample program.
                    Thank u.

    hi i had a program  for the rows with diff colors....do the same thing for the columns..
    REPORT  zdemo_alvgrid                 .
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
      line_color(4) type c,     "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    Set layout field for row attributes(i.e. color)
      gd_layout-info_fieldname =      'LINE_COLOR'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    data: ld_color(1) type c.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    *Populate field with color attributes
    loop at it_ekko into wa_ekko.
      ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
      if ld_color = 8.
        ld_color = 1.
      endif.
      concatenate 'C' ld_color '10' into wa_ekko-line_color.
    wa_ekko-line_color = 'C410'.
      modify it_ekko from wa_ekko.
    endloop.
    endform.                    " DATA_RETRIEVAL
    regards,
    venkat

  • BEx Analyser: How can I define colours for different levels of a hierarchy?

    Hi everyone,
    I have a report in BEx Anaylser that includes a hiearchy of 9 levels.
    For a better overview, I want to define different colours for the cells of each level. In this way, the user should be able to see which numbers belong to which hierarchy level. How can I do this?
    Best regards
    Daniel

    Dear Anujit,
    Thanks for your answer.
    Seriously? I cannot do this with BEx Analyzer other than using Excel VBA macro?
    Cheers, Daniel

  • Different coloured text in one Textbox

    Can someone PLEASE help me!!!!!!!!!!!!!!
    I need to know how to have different coloured text in the same textbox.
    My application has text being inputted into the textbox every 5 seconds from 2 different sources. I want to differenciate the text by showing the user 2 different colours for each source.
    Thank you very much

    Acording to the first post it also shows data, so it is a GUI component. i never sow a textbox.
    JTextPane can show data in different colors. also JTextArea can.
    Noah

  • Colours for Iphone calendar

    is it possibile to get different colours for different appointments into iphone calendar (as you can do in outlook?)
    or can I syncronise also the colours used by with Outlook 2003?

    You do realize you have a Ring/Silent switch:

  • Fix colour for title bar

    how to make title bar have a fix colour for every OS platform ?

    I think you can.
    Have a look at
    setDefaultLookAndFeelDecorated() in the
    Javadocs of JFrame and JDialog.
    Regards,
    Timno, using LookAndFeel will make the colour of title bar dynamic, i will have different colour for different OS.
    i want to set a specific colour for title bar in top level container component (JFrame or JDialog), then it will be the colour for every OS and the colour will not change even user set different colour scheme.

  • Is it possible to exchange an iphone 6 sealed, for a different colour?

    Hi,
    my dad just recently bought an iPhone 6 64gb space grey from his friend for my mother, however my mother doesn't like that colour and wanted to swap it for a silver. The box is still sealed in the box and unopened. She doesn't have a proof of purchase.
    Is it still possible to exchange it for a different colour?
    thank you

    If it is within the return period for the place you bought it from, you can return it for a refund and buy what you'd like. Apple in the USA has a 14 day unconditional return period (other retail stores will have their own policy). After that return period, no, you then own it and are not eligilbe for a return/exchange.
    p.s. You do not need proof of purchase if you bought from an Apple retail store. They can verify the purchase from the serial number.

  • How to give different Colour to Columns in JTable

    Hi,
    I am using a JTable and entering Data into it. I want each column of the JTable to be in different colour. Kindly Help. Some example code will be very helpful.
    Waiting Eagerly.....
    My Code....
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableModel;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.WindowEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.Window;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.GridBagLayout;
    import javax.swing.*;
    import java.util.Vector;
    import java.awt.GridLayout;
    import java.util.*;
    import javax.swing.table.TableModel;
    public class SummScr extends JPanel {
    public JTable ProSerSumTable;
    public String ColumnNames[];
    public String dataValues[][];
    //public Vector ProSerDet = new Vector();
    //constructor
    public SummScr(){     
    super(new GridLayout(1,0));
    createColumns();
    createData();
    TableModel ProSerTabMod = new AbstractTableModel(){
    public int getColumnCount(){return ColumnNames.length; }
    public int getRowCount(){return dataValues.length;}
    public Object getValueAt(int row, int col){return dataValues[row][col]; }
    public String getColumnName(int col){return ColumnNames[col];}
    public Class getColumnClass(int col) {return getValueAt(0,col).getClass();}
    public void setValueAt(Object aValue, int row, int col){dataValues[row][col] = (String)aValue; }
    ProSerSumTable = new JTable(ProSerTabMod);
    ProSerSumTable.setPreferredScrollableViewportSize(new Dimension(400,200));
    JScrollPane scrollpane = new JScrollPane(ProSerSumTable);
    //JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    //scrollpane.add(ProSerSumTable);
    add(scrollpane);
    public void createColumns(){
    ColumnNames = new String[4];
    ColumnNames[0] = "Processes";
    ColumnNames[1] = "Normal Threshold";
    ColumnNames[2] = "On Hold";
    ColumnNames[3] = "Exceeded Threshold";
    public void createData(){
    dataValues = new String[3][4];
    dataValues[0][0] = "Merit";
    dataValues[0][1] = "60%";
    dataValues[0][2] = "0%";
    dataValues[0][3] = "40%";
    dataValues[1][0] = "SuperMarket";
    dataValues[1][1] = "70%";
    dataValues[1][2] = "0%";
    dataValues[1][3] = "30%";
    dataValues[2][0] = "Passport";
    dataValues[2][1] = "65%";
    dataValues[2][2] = "0%";
    dataValues[2][3] = "35%";
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("Summary Screen");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    SummScr newContentPane = new SummScr();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    try this, also put your code into the code tags to help read your code
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableModel;
    public class SummScr extends JPanel {
         private static final long serialVersionUID = 1L;
         public JTable ProSerSumTable;
         public String ColumnNames[];
         public String dataValues[][];
         // public Vector ProSerDet = new Vector();
         // constructor
         public SummScr() {
              super(new GridLayout(1, 0));
              createColumns();
              createData();
              TableModel ProSerTabMod = new AbstractTableModel() {
                   private static final long serialVersionUID = 1L;
                   public int getColumnCount() {
                        return ColumnNames.length;
                   public int getRowCount() {
                        return dataValues.length;
                   public Object getValueAt(int row, int col) {
                        return dataValues[row][col];
                   public String getColumnName(int col) {
                        return ColumnNames[col];
                   public Class<?> getColumnClass(int col) {
                        return getValueAt(0, col).getClass();
                   public void setValueAt(Object aValue, int row, int col) {
                        dataValues[row][col] = (String) aValue;
              ProSerSumTable = new JTable(ProSerTabMod);
              TableColumn tc = null;
    //next line sets the renderer to your columns, in this example there are only four columns so its fairly easy,
    //though it should be no harder no matter how many columns
              for(int i = 0; i < 4; i++){
                   tc = ProSerSumTable.getColumnModel().getColumn(i);
                   tc.setCellRenderer(new ColumnColourRenderer());
              ProSerSumTable.setPreferredScrollableViewportSize(new Dimension(400,
                        200));
              JScrollPane scrollpane = new JScrollPane(ProSerSumTable);
              // JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
              // scrollpane.add(ProSerSumTable);
              add(scrollpane);
         public void createColumns() {
              ColumnNames = new String[4];
              ColumnNames[0] = "Processes";
              ColumnNames[1] = "Normal Threshold";
              ColumnNames[2] = "On Hold";
              ColumnNames[3] = "Exceeded Threshold";
         public void createData() {
              dataValues = new String[3][4];
              dataValues[0][0] = "Merit";
              dataValues[0][1] = "60%";
              dataValues[0][2] = "0%";
              dataValues[0][3] = "40%";
              dataValues[1][0] = "SuperMarket";
              dataValues[1][1] = "70%";
              dataValues[1][2] = "0%";
              dataValues[1][3] = "30%";
              dataValues[2][0] = "Passport";
              dataValues[2][1] = "65%";
              dataValues[2][2] = "0%";
              dataValues[2][3] = "35%";
         private static void createAndShowGUI() {
              // Make sure we have nice window decorations.
              JFrame.setDefaultLookAndFeelDecorated(true);
              // Create and set up the window.
              JFrame frame = new JFrame("Summary Screen");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              // Create and set up the content pane.
              SummScr newContentPane = new SummScr();
              newContentPane.setOpaque(true); // content panes must be opaque
              frame.setContentPane(newContentPane);
              // Display the window.
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args) {
              // Schedule a job for the event-dispatching thread:
              // creating and showing this application's GUI.
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        createAndShowGUI();
         class ColumnColourRenderer extends DefaultTableCellRenderer{
              public ColumnColourRenderer() {
                   super();
              public Component getTableCellRendererComponent(JTable table, Object value,
                        boolean isSelected, boolean cellHasFocus, int row, int column) {
                   if (column %2 == 0) {
                        setText((table.getModel().getValueAt(row, column)).toString());
                        if (isSelected) {
                              setBackground(table.getSelectionBackground());
                              setForeground(table.getSelectionForeground());
                        else {
                             setBackground(Color.RED);
                   } else if (column %2 != 0){
                        setText((table.getModel().getValueAt(row, column)).toString());
                        if (isSelected) {
                              setBackground(table.getSelectionBackground());
                              setForeground(table.getSelectionForeground());
                        else {
                             setBackground(Color.BLUE);
                   return this;
    }

  • How do I create a logotype with the letters in 2 different colours

    I need help with a logo. I'm trying to create a logo were it's as though a lamp is shining on the type so part of the letters are in 2 different colours.

    Set the type using the point text tool (meaning click then type, not click-drag-release then type). Use two type objects, one for each line.
    Draw the path for the light with the pen tool, fill it with yellow, and move it to the back (Object > Arrange > Send to Back).
    Select the top line of text and the spotlight and go to Object > Clipping Mask > Make.
    Now select just the type objects with the Direct Select tool (white arrow) and fill them with blue.

Maybe you are looking for