<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.container {
height: 400px;
width: 500px;
}
.leftdiv {
float: left;
height: 380px;
width: 230px;
padding:10px;
}
.rightdiv {
float: right;
height: 380px;
width: 230px;
padding:10px;
vertical-align:top;
}
-->
</style>
</head>
<body>
<div class="container">
<div class="leftdiv">News 1</div>
<div class="rightdiv">
News 2
</div>
<div style="clear:both"></div>
</div>
</body>
</html>
<div class="leftdiv"> [[Ditto? &parents=`6` &display=`1`]]</div> <div class="rightdiv"> [[Ditto? &parents=`6` &start=`1` &display=`1`]] </div> <div style="clear:both"></div>
KP
[[Ditto? &parents=`99` &total=`2` &tplFirst=`tplLeft` &tplLast=`tplRight`]]
<div class="leftdiv"> ... placeholders etc. for your chosen fields ... </div>
<div class="rightdiv"> ... placeholders etc. for your chosen fields ... </div>
KP
This does restrict the options to two items, though. What if you decide to make it three columns next week? Cheesy KP
<div id="newsblock"> <h2>News block header</h2> [!Ditto? &parents=`xx` &tpl=`NewsListing` &summarize=`2` &dateFormat=`%e %b %Y`!] </div>
<div class="ditto_summaryPost">And the CSS:
<h3 class="ditto_pageTitle">[+pagetitle+]</h3>
<p class="ditto_Content">[+introtext+] »<a href="[~[+id+]~]">Details</a> </p>
</div>
#newsblock {
margin-left: 18px;
}
#newsblock h2{
margin-bottom: 20px;
margin-left: 0;
}
#newsblock .ditto_summaryPost{
float:left;
padding:5px;
width: 45%;
height:100px;
margin-right: 10px;
border: 1px solid #000060;
font-size: 0.9em;
}
#newsblock .ditto_pageTitle {
text-align:left;
border:none;
font-size: 11px;
margin:0 0 5px 0;
padding:0;
color: #000060;
}
#newsblock .ditto_Content{
clear:both;
margin:0;
padding:0;
}