Forum Moderators: not2easy

Message Too Old, No Replies

Can't get 2 columns to work

Trying to stack divs into 2 columns

         

stevefrancomedia

8:31 pm on Sep 30, 2008 (gmt 0)

10+ Year Member



Working on a new site and can't seem to get the "WVIA Local Productions" area into 2 columns. I want the image on the left and the title, subtitle, and summary on the left, then the next item in the same format

see Judge nealon - image on left (not on top as it is) and text on right
then blank space (next one doesn't have an image) for the image and the text...

please help

<?php /** $Id: default.php 108 2008-01-25 02:52:33Z andrew.eddie $ */ defined( '_JEXEC' ) or die(); ?>

<div>
<?php foreach ($this->items as $item) :
$link = 'index.php?option=com_zine&view=article&id='.$item->id.':'.$item->alias;
if ($itemId = $this->params->get( 'itemid' )) :
$link= JRoute::_( $link.'&Itemid='.$itemId );
else:
$link= ZineHelperRoute::_( $link );
endif;
?>
<div class="minivertstack_row">
<div class="minivertstack_title"><a href="<?php echo $link;?>">
<?php echo $item->title; ?></a>
<?php if ($this->params->get( 'show_summary' )) : ?>
<div class="minivertstack_subtitle"><a href="<?php echo $link;?>"><?php echo $item->subtitle; ?></a></div>
<?php endif; ?>
<?php if ($this->params->get( 'show_summary' )) : ?>
<div class="minivertstack_summary"><a href="<?php echo $link;?>"><?php echo $item->summary; ?></a></div>
<?php endif; ?></div>
<?php
$media=$item->media;
if ($thumb = $media->get( $this->params->get( 'show_icon_items' ) )) :
?>
<img class="minivertstack_img" src="<?php echo $this->baseurl.'/'.trim( $thumb, '/' );?>" alt="<?php $media->get( 'caption' );?>" />
<?php endif; ?>

</div>
<?php endforeach; ?>
</div>
<?php if ($this->params->get( 'show_viewall' )) :
$link = 'index.php?option=com_zine&view=articles&cid='.$this->item->id.':'.$this->item->alias;
if ($itemId = $this->params->get( 'itemid' )) :
$link= JRoute::_( $link.'&Itemid='.$itemId );
else:
$link= ZineHelperRoute::_( $link );
endif;
?>
<a href="<?php echo $link;?>" style="display:block">
<?php echo JText::_( 'View all' ); ?></a>
<?php endif; ?>

[edited by: jatar_k at 9:32 pm (utc) on Sep. 30, 2008]
[edit reason] no urls thanks [/edit]

SuzyUK

6:18 pm on Oct 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi stevefrancomedia and Welcome to WebmasterWorld [webmasterworld.com]!

could you please post some of the generated source HTML (with your site specifics removed) and its relevant CSS, we are not PHP parsers ;) this code means nothing on it's own