Fork me on GitHub

Rapport de message :*
 

Re: blocks aux coins arrondis

Titre du sujet : Re: blocks aux coins arrondis
par Anonyme sur 19/05/2008 09:33:40

re',

Je rectifie le tir por que cela fonctionne aussi sous cette @#!*![ de IE

Pour centerblocks.html :
<{if $xoBlocks[$zone]}>
    <
div class="xo-blockszone" id="xo-page-<{$topbottom}><{$lcr}>blocks">
    
  <{foreach 
from=$xoBlocks[$zoneitem=block}>
        
<!-- 
Ajout coins supérieurs (http://www.e-t172.net/articles/round/) -->
        
<div class="top_left"></div>
        <
div class="top_right"></div>    
<!---------------------------->    
        
    <
div class="xo-block <{$block.module}>">
            
      <{if 
$block.title}>
        <
div class="xo-blocktitle"><{$block.title}></div>
      <{/if}>
      
      <
div class="xo-blockcontent"><{$block.content}>

<!-- 
Ajout coins inférieurs -->            
        <
div class="bottom_left">
         <
div class="bottom_right"></div>
      </
div>
<!---------------------------->    
      
      </
div>

    </
div>

    <{/foreach}>

    <!-- 
more content here for example -->
    </
div>
<{/if}>


Pour blocks.css
/* corner : http://www.e-t172.net/articles/round/ (positions relatives) */

#xo-page .xo-blockszone .top_left {
backgroundurl(../img/block-corner-top-l.giftop left;
floatleft;
z-index0;
background-repeatno-repeat;
positionrelative;  
height10px
width10px;
}

#xo-page .xo-blockszone .top_right {
backgroundurl(../img/block-corner-top-r.giftop right;
floatright;
z-index1;
background-repeatno-repeat
positionrelative
height10px
width10px;
}

#xo-page .xo-blockszone .bottom_left {
backgroundurl(../img/block-corner-bot-c.gifbottom left;
floatleft;
z-index2;
background-repeatrepeat-x;
positionrelative;  
height10px
width100%; 
 
}


#xo-page .xo-blockszone .bottom_right {
backgroundurl(../img/block-corner-bot-r.gifbottom right;
floatright;
z-index3;
background-repeatno-repeat;
positionrelative;  
height10px
width10px;

}
/* end corner */

#xo-page .xo-blockszone > .xo-block {
background-color#e2edf0;
padding0;
margin-bottom20px;
}

#xo-page .xo-blockszone .xo-blockcontent {
padding5px 0 0 0;
positionrelative
z-index4
}


Tout en sachant que le bloc en bas à gauche doit avoir des dimensions respectables (2000px par exemple) pour occuper tout l'espace sous le bloc.

@+
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

39 Personne(s) en ligne (24 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 39 | Plus ...