Hello,

I've got a block in a custom region that displays dynamic content. However it appears beneath certain other page content (only in IE!) So i figured I could set the z-index level in the CSS for the region, nope that didn't work! Then I thought, set the weight for the block, I go to admin/build/block and just for a second a "Weight" column appears... then disappears! Hmmm so how do set the weight of a block?

TYIA

Comments

nevets’s picture

You set the weight by drag and drop, but that determines the order the blocks appear in a region.

Without a link to the site it is hard to provide and answer but I would venture you are positioning/floating the block/region and not clearing space for it.

ludo1960’s picture

Eh...err..em!! I have only 1 custom region and 1 block therein, defined in the theme.info file and given it a space in the page.tpl. As there is only 1 block the problem can't be one of block weight then, but of IE CSS usage

The CSS for the new region is:

.region {
float: right;
margin: 0 0 1.8em 0;
z-index: 10000;
}

There has to be some "trick" specific to IE to get this to display correctly, any ideas?

nevets’s picture

I am guessing your page.tpl.php has code like

<div id="region">
  <?php print  $region; ?>
</div>

If this correct, I would trying changing the div line to <div id="region" class="clear-block">, save the file and do a page refresh.

ludo1960’s picture

OK tried that (good guess!) now my dynamic region is at a lower z-level than before ie text on page is above my dynamic stuff. Only in IE tho! Mr Gates can consider himself removed from my xmas list!

nevets’s picture

Without a link to the page I am hard pressed to provide other suggestions.

psymes’s picture

After much searching I found an answer here:

http://drupal.org/node/250853

To prevent to Weight column from disappearing when the admin/build/block pages loads, you have to disable JavaScript in your browser. That did the trick for me.