I can't seem to get any of the panels to render properly as two columns.

I've double checked and no matter which format I try I'm getting everything in the left panel.

Comments

fronbow’s picture

What browser are you using?
If it's IE, then you'll need to tweak the css so that widths are something like 49%

eg in twocol_stacked.css

.panel-2col-stacked .panel-col-first { 
  float: left; 
  width: 48%;
}
.panel-2col-stacked .panel-col-last { 
  float: left; 
  width: 48%;
}

I have this same problem; FireFox displays it as it should be, IE doesn't.

merlinofchaos’s picture

I think this has more to do with padding on whatever your panel display is 'inside' than it does with needing to make the panels smaller. IE and padding can be kind of tricky, though.

My panels currently work in IE in testing though, so you might look at whatever containers are around the panel in your page.tpl.php and see how much padding they have inside them. I'll have someone who knows more CSS look at this and see if I'm actually right about this.

catch’s picture

I had two-column stacked working great. Then it suddenly reverted to one column (in both i.e. and firefox).

I've been changing CSS all day, but not anything before this error started. Have made no changes to two_cols_stacked.css

Page is here:

require_once('./' . $file->filename);

catch’s picture

Well two days later, this is working again. Made no changes to CSS. I'll try to keep an eye on it and see if any variables affect it.

catch’s picture

and off again. No changes to css this time at all. Still affecting both windows and i.e.

updated to 28/08 version of panels but no change. Will try to look more at padding and report back.

newtoid’s picture

hi, i too am having sweet results with firefox, but the same problem with ie6.

when i was trying to get a 2 column stacked layout, i found that it worked just fine with some themes, but not with others - for example, bluemarine works no problem, but Box_cleanslate just puts them both on the left.

the way the 2 aforementioned themes handle right-hand-side blocks is different too.

i really hope that this gets fixed cos it is a very useful mod.

kpaul’s picture

the css up there worked great for me. until i changed the number of nodes to show on the view. then it broke. and now i think i know why catch was having intermittent problems. if the left column isn't longer than the right column, it breaks. i don't know enough to fix that (yet) but that's the problem - if the left column is shorter than the right, they all merge together.

-kpaul

merlinofchaos’s picture

Status: Active » Fixed

This may be fixed in Panels 1.1; I'm not really sure though. Let me know.

Anonymous’s picture

Status: Fixed » Closed (fixed)
giorgio79’s picture

Hoops I just had this as well with Zen. The suggestion in #1 worked. Tried setting margin 0 and padding 0 for containing elements but no luck... #1 did it though...