Depending on your table configuration it can be done if the table is simple enough, but if you use a separate div for the table contents, then you will have to set the widths for the columns, both on header and content, and can be very difficult to match them. Also if you want to scroll horizontally the table (if you hav a lot of cols) there will be problems.
Pablo On 7/11/07, Ketan Patel <[EMAIL PROTECTED]> wrote: > > > can be done with css. > > Put the following in the table > Company Name Contact Name Contact Tel > > Just below the above table, have a div element for which you specify > the height and set overflow to true. then in the div element put your > rows of data. if you overflow the height of div, then you would get > yhe scollbar to scroll vertically. you may have to play around with > the margins and padding to get appearance right. > > Cheers, > Ketan ;-) > > Unite wrote: > > What I want to do is put a row of data in a scrollable box. Any Ideas? > > Example > > > > Company Name Contact Name Contact Tel > > > ---------------------------------------------------------------------------------------- > > Random Name 12345678 > > > > > > Company Name, Contact Name and Contact Tel are headings which wont be > > in the scrollable box and just part of the PHP Page. So all the data > > must be put into a scrollable box with the correct starting positions > > always. Just like a list box but with more than 1 set of Data in it > > and say if theres more than 20 companys it becomes scrollable instead > > of extending the pages length. If possible also to have a light > > "seperator" line for the 3 data fields. Is this at all possible? > > > > Basically put the below information taken from a database into a > > scrollable box so it looks like it does here. > > www.adslgamer.co.za/example.jpg > > > > > -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
