Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - make a list of child tables wrap

 
Thread Tools Search this Thread
Old 06-15-2006, 04:32 PM   #1
Default make a list of child tables wrap


Hi, I have an undefined number of small tables one after another which
list results from a database. I really need for them to wrap to the
next line if / when they hit the edge of the page but I can't find an
option to do this. I've tried align="left" which works fperfectly or
images but not for tables. Can anyone help me out?

Thanks a lot
Ciaran



cronoklee@hotmail.com
  Reply With Quote
Old 06-15-2006, 05:21 PM   #2
Jonathan N. Little
 
Posts: n/a
Default Re: make a list of child tables wrap

wrote:
> Hi, I have an undefined number of small tables one after another which
> list results from a database. I really need for them to wrap to the
> next line if / when they hit the edge of the page but I can't find an
> option to do this. I've tried align="left" which works fperfectly or
> images but not for tables. Can anyone help me out?


CSS is your answer, in your stylesheet:

TABLE.results { float: left; margin: .5em; }

your Markup:

<table class="results">
<tr>
<td>data</td>...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  Reply With Quote
Old 06-15-2006, 05:23 PM   #3
Brian Cryer
 
Posts: n/a
Default Re: make a list of child tables wrap

<> wrote in message
news: ups.com...
> Hi, I have an undefined number of small tables one after another which
> list results from a database. I really need for them to wrap to the
> next line if / when they hit the edge of the page but I can't find an
> option to do this. I've tried align="left" which works fperfectly or
> images but not for tables. Can anyone help me out?
>
> Thanks a lot
> Ciaran


You can wrap divs:

<div style="float: left"> . . . </div>
<div style="float: left"> . . . </div>

So, whilst I've not tried it I would imagine (if I've understood correctly
what you after) that you might get what you are after by applying the style
float:left to your tables.

Hope this helps.
--
Brian Cryer
www.cryer.co.uk/brian




  Reply With Quote
Old 06-15-2006, 05:23 PM   #4
cronoklee@hotmail.com
 
Posts: n/a
Default Re: make a list of child tables wrap

That worked a treat! Thanks a million Jonathan

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump