Posted by oskar_calvo on May 7, 2008 at 12:12am
Hello.
I hope some one can tell if what I have in mid can be done, or not.
I am trying to get different width in panels. I am working with Two column bricks, and the idea is this:
|______________|
|__________||___| (1)
|______________|
|____||_________| (2)
|______________|
I am checking the css, but I change the width of the number 1, it also change the numbre 2. My css code is this:
.panel-2col-bricks .panel-col-first{width:65%}
.panel-2col-bricks .panel-col-last{width:35%}I don't find that the css let me found individuals id or class for every panel.
Any idea how to get different width for line 1 and line 2.
Thanks
Oskar

Comments
You marked your post as
You marked your post as Panels2. If that's accurate, you can select the "flexible" layout and set your configuration for this under "layout settings" on the panel page.
Anyone know of a clean way
Anyone know of a clean way to limit the total height or width of a pane in a panels page? Or, possibly to limit the total amount of text or content shown in a pane, programmatically?
I know we can use
<!--- break --->to specify teaser size, but I am wondering if there is something I might not be aware of that is available already in Panels 2 that can do one of the two things mentioned above. Other wise I supposed I can always just put some custom PHP into the site I am working on, to automatically insert the break after so many lines.Sam Rose
Social Synergy
Open Source Ecology
P2P Foundation
Sam Rose
Hollymead Capital Partners
P2P Foundation
Social Media Classroom
There is nothing in Panels
There is nothing in Panels to do this specifically; if you'reinserting node content, right now it's best to do that with your node-*.tpl.php
It would be really great to
It would be really great to have some way for Panels to "lock in" the dimensions of a panel in order to prevent panel windows from suddenly growing or shrinking when content within the panel changes. Sounds like that's what the previous poster is after as well...
Then you need to create
Then you need to create custom layouts. This can only be done via CSS, really, and it's not trivial to do something like this in flexible.
Good to know. Thanks (as
Good to know. Thanks (as always) Merlin.
Panel margins
Here is what I do--and I'm sure somebody out there has a better way or at least an explanation for why this works.
AFTER you create everything about the panel except padding and margins for regions, go to sites/default/files/ctools/css and you will find a very long filename, mixed numbers and letters. Find the most recent one and adjust the panel's width and padding.
If you go and edit the panel through admin/panel or through "edit panel" and update it or load it, then drupal saves another weird file in the directory above with a different name. You have to go back in and edit the panels again.
Please tell me there is an easier way....
AS of Panels 3.7 you can
AS of Panels 3.7 you can adjust the width of the panel in the canvas settings.
If you need to do it via CSS you're supposed to add an override to your theme's style.css or similar; trying to modify CTools cached temporary CSS is always going to be bad. That file gets refreshed from time to time no matter what you do.
with the keyboard?
Hi,
Is there a way to change the width of flexible region with the keyboard? The layout designer in 3.7 will allow me to drag a slider left or right but doesn't move at all with the keyboard.
Or is there a setting somewhere I can change to give, for instance, a 40/60 split?
It appears that Panels is not Section 508 compliant without this ability.
Hi Earl, It would be great if
Hi Earl,
It would be great if the pane width and high also could be set in the column or row settings, like the canvas settings. Now I have to use the slider and sometimes it is 0.5pm different..
Greetings, Martijn
Anyhow, what a large amount of great functionality in panels 3.7+!
greetings,
Martijn