Trouble with new Context and CSS

Events happening in the community are now at Drupal community events on www.drupal.org.
Dave R.'s picture

I am looking for a little advice on some problems I have with a new context I created. Can anyone tell me how and where a new context gets a template or perhaps why a new context does not use the CSS of the rest of the site?

  • Also -

I have a new context set up and it displays the blocks I want in the regions I want, but the regions and blocks appear in a vertical stack, not horizontally, left-to-right. (Everything is fine in the out-of-the-box contexts.)

What I get:

Block
Block
Block

What I want:

Block Block Block

Also the blocks (from Views) do not use the stylesheets in this context that they would on one of the contexts that come with OP. I've been looking around for docs or discussion about this for a few days, but am coming up with nothing.

Comments

check your CSS. Most of the

ndwilliams3's picture

check your CSS. Most of the default OP blocks are style via Id's and not classes. You would need to copy the css for the block and add the id for your blocks.

Looks like you need to float the blocks. By default, the blocks are cleared, so don't forget to override the clear.

default views are also styled by Id's vs classes.

.block (or your css selector for the blocks)
{
float: left;
clear: none;
margin-right: 10px;
}

I dont understand the first

betovarg's picture

I dont understand the first part of your question... context does not add templates, you can assign templates to pages via their path (for example: www.yoursite.com/multimedia would use the template page-multimedia.tlp.php). You can add css classes to the body through the "theme" reaction. Hope this helps

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: