1st record spacing different than the rest.
4 posts by 3 authors in: Forums > CMS Builder
Last Post: July 9, 2008 (RSS)
By videotoys - July 8, 2008
On all my listings for some reason the first record always shows up different than the rest.
Heres an exaple:
http://www.chrismancommercial.com/office.php
Notice the 1st seperator bar is flush with the images under it and then all the rest are slightly indented.
Is it something with the CMS or something caused by the HTML placeement code I am using?
Here is the code I use for placement:
<table>
<tr>
<td valign="top">
<?php foreach ($officeRecords as $record): ?>
<?php echo $record['address_bar'] ?>
</td>
</tr>
</table>
<table>
<tr>
<td valign="top">
<?php echo $record['image'] ?>
</td>
<td>
<?php echo $record['content'] ?><br/>
</td>
</tr>
<?php endforeach; ?>
<?php if (!$officeRecords): ?>
None available at this time.<br/><br/>
<?php endif ?>
</table>
Re: [videotoys] 1st record spacing different than the rest.
By Donna - July 8, 2008
It looks like you've gotten this fixed up? I checked in both Firefox & IE, and I'm seeing space between the separator & the images for all of your listings. Are you still having this problem? If so, can you let me know what browser & operating system you're using?
--
support@interactivetools.com
Re: [Donna] 1st record spacing different than the rest.
By videotoys - July 9, 2008
Seems like the images all stay aligned but the separator bar moves to the left a little.If I change the width of the table that holds the separator bar in the wysiwyg editor it only gets shorter on the right, even if I have that field left aligned or center aligned.Im thinking now that maybe my problem is that I'm using 3 wysiwyg fields, one for the separator bar, one for the images, and one for the text. Just thought it might be a common problem, but it must be on my end.
Thanks for any help if possible.
Re: [videotoys] 1st record spacing different than the rest.
By Jake - July 9, 2008
I took a look at your page and did see the problem - that's definitely perplexing since the code is identical for each one of those listings. I did notice that some of your table tags aren't closing, which seems like the most likely cause to me:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.chrismancommercial.com%2Foffice.php&charset=%28detect+automatically%29&doctype=Inline&group=0
Try touching that up to see if it resolves the problem. [:)]
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com
Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.