Panels is the best think that's happened to Drupal in the 5 years I been using it. But changing the background color has completely escaped me for months.

The initial installation was very easy and I thought I just add color when I worked out the custom view & blocks. Well they have been done for months, and I still stuck with in monochrome.

I know it's probably easy and I have a mental block, so any guidance would be appreciated.

Many thanks for a great set of programs.
Regards
Ron

Comments

catch’s picture

Status: Active » Fixed

Give your panel page an ID (there's an option for this in the UI).

Then in your theme's style.css, add

#yourpanelid {
  background-color: #ABCDEF;
}

replace abcdef with a hex for what you actually want.

Same principle applies to panes.

I think there may be a place to add css in the panels ui as well, but not tried that yet, but the same principle applies. Note this is much more a CSS question than a panels one.

ron_mahon’s picture

Thanks a million I really appreciate it
Your right it is a CSS problem but I didn't see a place to post that kind of question

Best Regards

Ron

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

aric koenig’s picture

I was able to apply the background color to my panels using this method. Any way to apply a style to a specific pane within that panel?

aric koenig’s picture

applied it by using #panel_id .panel_col_top {...}. just looked at the source code for the div id of that region.