Need help with my CSS style Please


Author Message
CMW Web FX

Posted: 1/29/2011
Quote message 

I have created 2 new block regions no problem with the new version of Artisteer. It is completely different to create these new regions in the latest version. I have read all the threads regarding creating new regions, and if you look into the structure, it is sort of relevant. I will create a step by step on making new regions as it was actually quite easy. However I have a small problem...

Having a Footer that spans the "sheet width", I am trying to get a custom region to be centered in the footer. My process to get the new regions are as follow:

1) Add new region block.tpl.php
 && $region != "footer1"


2) Make new "block-footer1.tpl
This new .tpl file has this code in it
<div id="<?php print $block->region .'-'. $block->module .'-'. $block->delta; ?>">   <?php if (!empty($block->subject)): ?>     <h2><?php print $block->subject ?></h2>   <?php endif;?>   <div class="content">     <?php print $block->content ?>   </div> </div>


3) Create new div in page.tpl.php
    <div class="art-footer-block"> <?php if ($footer1): ?> <?php print $footer1; ?> <?php endif; ?> </div>

(Place this code under div class "art-footer-body", this way you can control where it will sit in the div using CSS.)

4) Create new region in (your website).info
regions[footer1] = Footer 1 


5) Create new style in style.css
#art-footer-block {   width: 100% ;   margin-left: auto ;   margin-right: auto ; }


Now at #5 I have the problem to get the block to be centered in the new region. I cannot see how else I should be defining the CSS to get this right.

 
CMW Web FX

Posted: 1/29/2011
Quote message 

I should have given the url if anyone might see where I have gone wrong
www.cmw3dfx.com.au
 
CMW Web FX

Posted: 1/29/2011
Quote message 

It seems I have fixed it.... I played a bit more with the CSS using my CSS Bible.
#5 should read
.art-footer-block {   margin-left: auto ;   margin-right: auto ; }