On my website I want to display a number of announcements, consecutively one below the other. This works well, except that cmsBuilder forces the <p>...</p> html markup in each record. This then moves every line down one, adding a pile of unwanted whitespace.
Here is my code snippet:
<?php foreach ($announcementsRecords as $record): ?>
<center><h2><?php echo $record['title'] ?><h2></center>
<p><b>When<b>: <?php echo $record['when'] ?></p>
<p><b>Where</b>: <?php echo $record['where'] ?></p>
<p><b>Details</b>: <?php echo $record['content'] ?></p>
It looks like this on the website:
When:
{content from record 1}
Where:
{content from record 2}
etc....
When I checked the data in each record, I noticed that the content is wraped in <p>...</p> paragraph markup which forces the whitespaces. I've tried removing the <p> ...</p> in my code, but there is no difference. How can I get rid of the markup in each record?
Thanx!
--
Ragi Sekaly
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke