Closed (fixed)
Project:
Panels
Version:
5.x-2.0-beta3
Component:
Panel pages
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2007 at 05:01 UTC
Updated:
26 Jul 2008 at 07:23 UTC
Hi,
I am creating a custom Drupal layout starting with the Drupal Zen theme. I am using the two panel stacked layout with rounded corners around each panel. Each panel has a white background. Can you tell me how I can implement a different background color for each panel?
Thank you very much,
Royce Tivel
| Comment | File | Size | Author |
|---|---|---|---|
| page layout.jpg | 33.43 KB | rtivel |
Comments
Comment #1
merlinofchaos commentedIn -dev, you can provide a CSS id and class to each pane. Using that, you can assign colors via your theme. This iwll be available in beta1, which I am releasing tomorrow.
Comment #2
rtivel commentedThank you very much for your prompt attention to this.
Comment #3
rtivel commentedI deleted the original text of this post which was a request for some help with the CSS. I finally figured out how to properly configure individual panels for different colors. Thanks for a great module.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
Keith Hurst commentedI would like a little help in removing the white background so it becomes transparent.
I have the latest build of Panels and can see where to enter a class ID but no matter what I try in my CSS sheet I'm running around in circles, obviously need to understand CSS better but any pointers appreciated.
Thanks
keith
Comment #6
ron_mahon commentedPlease share your solution.
Thanks
Ron
Comment #7
Keith Hurst commentedAny chance someone might be able to chip in here and suggest possible avenues of approach ?
Thanks
keith
Comment #8
sdboyer commented@5 - You're running around in circles because, unfortunately, the only way to define the css for the styles is to do so as style declarations in the . Consequently, all of your attempts to change things via CSS will fail, as anything in a css file will be lower in the cascade hierarchy than what's been declared in the html header itself.
If you want to change the way it renders, you'll have to directly edit the css in panels/styles/rounded_corners.inc or, perhaps a better solution, create a duplicate of rounded_corners.inc, rename it slightly, and make whatever changes you need to that file.
Comment #9
Keith Hurst commentedThanks, I was coming rounf to the conclusion that the inc file is the place to make any changes.
Now all I need is to find a good rounded corners / borders / transparency CSS tutorial.
Thanks again
Keith
Comment #10
sdboyer commentedYou bet. At some point we'll ideally move over to using css files for these, but it's not REALLY pressing, so it might not happen until panels3.
In the meantime, here are a couple links to get you started:
http://www.alistapart.com/articles/onionskin/ (the onion-skinning technique is useful even if you're not doing dropshadows)
http://www.456bereastreet.com/archive/200505/transparent_custom_corners_...
There's TONS more out there at your googling fingertips.
Comment #11
Keith Hurst commentedThanks for the include file confirmation. With a little help from...
http://www.roundedcornr.com/
a wee bit of work in Photoshop and a modification of the rounded-corners.inc I now have fully transparent borders around the panels I require.
Fantastic stuff.
Keith
Comment #12
wallbay1 commentedhey guys I don't know much about coding can someone just put here an example of a css that you can use on a panel? TO GET ME STARTED
i will make the color modification from there.