Re: Retrieve data in table cells - how to avoid line breaks?

2010-02-11 Thread mike karthauser

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


Re: Retrieve data in table cells - how to avoid line breaks?

2010-02-11 Thread sebb86
Addition: It also would be nice, if the cell width would fit to the
cell content.

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


Re: Retrieve data in table cells - how to avoid line breaks?

2010-02-11 Thread sebb86
Thanks. Furthermore, is it possible to create only a horizotal line
under each complete data-row?

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


Re: Retrieve data in table cells - how to avoid line breaks?

2010-02-11 Thread sebb86
Thanks! That works for me:

[code]
style type=text/css
th { white-space:nowrap; }
/style
[/code]

Furthermore, is it possible to create only a horizontal line under
each complete data row?

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


Re: Retrieve data in table cells - how to avoid line breaks?

2010-02-11 Thread sebb86
Thanks, that works.
Furthermore, is it possible to create only a horizontal line under
each complete data-row?



On 11 Feb., 09:21, mike karthauser mi...@brightstorm.co.uk wrote:
 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 sitehttp://cakeqs.organd 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 athttp://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