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

Question about a small formatting issue.
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

Hi there!

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?
Donna

--
support@interactivetools.com

Re: [videotoys] 1st record spacing different than the rest.

By Jake - July 9, 2008

Hi videotoys,

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.