You need to set a css style for th

Ie
th { whitespace:nowrap}

which will stop the lines breaking on spaces.


Mike Karthauser
Brightstorm limited
Tel: 07939252144

On 11 Feb 2010, at 07:19, sebb86 <kahlc...@googlemail.com> wrote:

Hello,
when i retrieve my data in table-cells, how can i avoid line breaks,
for example in the table header?

[retrieve-code]
<!-- table- (column-) captions -->
     <table>
         <tr>
<th><?php echo $paginator->sort(array('asc' =>'id v', 'desc'
=>'id ^'), 'id');  ?></th>
         <th>...</th>
         ...
       </tr>

<!-- table content -->
         <?php foreach ($hardware_units as $hardware_unit): ?>
         <tr>
         <td><?php echo $hardware_unit['HardwareUnit']['id']; ?></td>
         <td><?php echo $hardware_unit['HardwareUnit']['...']; ?></
td>
          ...
[/retrieve-code]

Thanks if someone can help! :)

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to