0
Welcome Guest! Login
0 items Join Now

Am I doing this right?

  • Am I doing this right?

    Posted 16 years 10 months ago
    • I'm trying to make user 4 & 5 modules be defined in CSS. I simply changed the class from usermodule to usermodule4 and usermodule5 in index.php like below:
      <?php if ($this->countModules('user4') or $this->countModules('user5')) : ?>
      <?php $width =(99 / (($this->countModules('user4')?1:0) + ($this->countModules('user5')?1:0))); ?>
      <?php if($this->countModules('user4')) : ?>
      <div class="usermodule4" style="width:<?php echo $width;&nbsp; ?>%">
      <jdoc:include type="modules" name="user4" style="rounded" />
      </div>
      <?php endif; ?>
      <?php if($this->countModules('user5')) : ?>
      <div class="usermodule5" style="width:<?php echo $width; ?>%">
      <jdoc:include type="modules" name="user5" style="rounded" />

      and than added the following CSS in template.css
      .usermodule4 {
      float:left;
      width: 120px;
      }
       
      .usermodule5 {
      float: left;
      width: 228px;
      }

      Yet, the module widths still looks the same... :(
    • MMOFPS games: www.massivefps.com | Extension Templates: www.extensiontemplates.com
  • Re: Am I doing this right?

    Posted 16 years 10 months ago

Time to create page: 0.064 seconds