Repeat Region Format
I'm trying to get a repeat region to display data horizontal (left to right) instead of vertical (top to bottom) Can anyone tell me how this is achieved?
Thanks
I'm trying to get a repeat region to display data horizontal (left to right) instead of vertical (top to bottom) Can anyone tell me how this is achieved?
Thanks
Within your repeat region you would put the contents in a div that has the align property set.
<div style="float:left">[your content]</div>
No problem. If you run into any additional issues, feel free to open a new thread.
Jimmy,
I applied the div tag, but I'm not getting the desired effect! Here is a snipped of my code. My repeat region is still displaying vertical... Could you take a look at it to see what is wrong?
<body>
<div style="float:left">
<?php do { ?><img name="" src="/products/gif_thumb/<?php echo $row_rsPairsFlowers['ItemThumb']; ?>" width="170" height="110" alt="" />
<br />
<?php echo $row_rsPairsFlowers['ItemLongDesc']; ?>
<br />
<?php echo $row_rsPairsFlowers['ItemPrice']; ?>
<br />
<?php } while ($row_rsPairsFlowers = mysql_fetch_assoc($rsPairsFlowers)); ?>
</div>
</body>
Thank you,
Jw
Are you copying and pasting the description from word or another text editor program? If you are, try typing in the text and submitting.
What are some of the sample descriptions that aren't working?
Are there any errors that occur on the page when you are accessing this? There is most likely a javascript error that is causing this behavior.
Jimmy,
Sorry for just getting back with you. Your suggestion worked.
Thanks for your help.
Jw
Great to hear it. If you run into any additional issues, feel free to open a new thread.
Hi Jimmy.
I tried the method you gave above and everything is working UNTIL I enter a <br/> then it displays all the results vertically again instead of horizontal.
This is a sample of my code that is not working
<div style="float:left; width:auto">
<?php do { ?>
<a href="<?php echo $row_RcrdsetHenkor['link_tb']; ?>"><img src="<?php echo $row_RcrdsetHenkor['image_tb']; ?>" alt="" /></a><br />
Read More
<?php } while ($row_RcrdsetHenkor = mysql_fetch_assoc($RcrdsetHenkor)); ?>
</div>
If I take the br out the it works horizontally but the image and the text are next to each other and not underneath each other.
Any advice?
please provide a link where i can see this to troubleshoot.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.