Yes, but next time turn on More Readable in your preferences… Here’s
the relevant bit of the page:
<div id="cont" class="f-x2 f-x3" style="position:relative; float:left;
width:152px; margin:0px 10px 10px 0px; overflow:visible">
<p><?php foreach (WYLoopElement::aLoopIDs("LoopStart") as
$webyep_oCurrentLoop->iLoopID) { $webyep_oCurrentLoop-
>loopStart(true); // WebYepV1 ?></p>
<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td valign=top style="width:152px; height:25px">
<p class="f-lp"><span class="headlineklein"><?php
webyep_shortText("destination", false); // WebYepV1 ?></span></p>
</td>
</tr>
<tr>
<td valign=top style="width:152px; height:110px">
<p class="f-lp"><?php webyep_image("Bild", false, '', '',
'myframe', 152, 110, false); // WebYepV1 ?></p>
</td>
</tr>
<tr>
<td valign=top style="width:152px; height:25px">
<p class="f-lp"><span class="fotocredit"><?php
webyep_shortText("fotocredit", false); // WebYepV1 ?></span></p>
</td>
</tr>
</table>
<p class="f-lp"><?php $webyep_oCurrentLoop->loopEnd(); } // WebYepV1 ?
></p>
</div>
There’s at least two things going wrong here. First, your loop markers
are appearing inside of paragraph markers, which means that they are
going to generate a broken structure when they loop, with an end
paragraph mark at the top and a begin paragraph mark at the bottom of
each repeated element. Second of all, the table that has the
destination, photo, and photo credit in it is not set to float left,
but the outermost container element is.
If I were hand-coding this, I would use the following code:
<div id="cont" class="f-x2 f-x3" style="position:relative; float:left;
width:665; margin:0px 10px 10px 0px; overflow:visible">
<?php foreach (WYLoopElement::aLoopIDs("LoopStart") as
$webyep_oCurrentLoop->iLoopID) { $webyep_oCurrentLoop-
>loopStart(true); // WebYepV1 ?>
<table border=0 cellspacing=0 cellpadding=0 style="width: 152px;
float:left; margin-right: 8px; margin-bottom: 8px">
<tr>
<td valign=top style="width:152px; height:25px">
<p class="f-lp"><span class="headlineklein"><?php
webyep_shortText("destination", false); // WebYepV1 ?></span></p>
</td>
</tr>
<tr>
<td valign=top style="width:152px; height:110px">
<p class="f-lp"><?php webyep_image("Bild", false, '', '',
'myframe', 152, 110, false); // WebYepV1 ?></p>
</td>
</tr>
<tr>
<td valign=top style="width:152px; height:25px">
<p class="f-lp"><span class="fotocredit"><?php
webyep_shortText("fotocredit", false); // WebYepV1 ?></span></p>
</td>
</tr>
</table>
<?php $webyep_oCurrentLoop->loopEnd(); } // WebYepV1 ?>
</div>
The outer div is set to the width of the entire table cell it is
contained in, and the table inside the loop is set to 152px width and
float left. The P tags are removed from around the loop code. I also
added some padding to separate your looped elements from one another,
you might not want that in your design. With those changes made, the
individual tables for each repeated element will float left until they
run out of room, then wrap to a new row.
Are you using the Actions from Max to do this layout, or are you hand-
coding the page with Markup Items? That’s critical to how you approach
fixing this problem. Your meta tags say this was made with Pro, but
your subject line says Express. That’s also an important detail to get
clear, as that will also dictate how you solve the problem.
Walter
On Apr 25, 2010, at 1:47 PM, purity wrote:
ok.
hope did all right …
here’s the link: http://pastie.org/934291
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options