PDA

View Full Version : How to properly style a content panel.



malkishua
8 May 2007, 8:44 AM
Hi,
I would like to know how i could style a content panel,
im trying to add a dynamic form to a dialog layout, and so far the biggest issue i have
is that i cant manage to style the content panel itslef correctly then im left with a white background when the form is smaller than the content panel.

Thanks,
Rob.

tryanDLS
8 May 2007, 10:09 AM
Look at the rendered HTML in Firebug to determine what classes you need to work with. You can add your own CSS or you can modify styles on the panel's underlying Element object - see the doc for what functions are available.

malkishua
8 May 2007, 12:28 PM
i did, but i was wondering if there is a way to call a new content panel created with some style as input.
Thanks,
-Rob

tryanDLS
8 May 2007, 12:58 PM
You can pass styles in the config if you use autocreate and pass them in the autocreate config object.