Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:45 PM
kelvSYC
Guest
 
Posts: n/a
Default Rendering long lists

Say I have a really long list (more than 100 items, say). Because of
the enormous vertical space it takes up, I decide to present them in a
a way that I put five list items in a line (ie. the sixth item appears
under the first, seventh under the second, and so on). However, I
can't think of a way to do this with a minimal amount of XHTML.

So far, I've used divs to simulate layout-tables, but I believe a more
elegant and flexible solution exists. Is there a way to do this with a
minimum of XHTML, and using as much CSS as possible?

--
I am only a mirage.
  #2  
Old July 20th, 2005, 11:45 PM
Geoff Ball
Guest
 
Posts: n/a
Default Re: Rendering long lists

kelvSYC <kelvSYC@no.email.shaw.ca> wrote in news:260520042206151583%
kelvSYC@no.email.shaw.ca:
[color=blue]
> Say I have a really long list (more than 100 items, say). Because of
> the enormous vertical space it takes up, I decide to present them in a
> a way that I put five list items in a line (ie. the sixth item appears
> under the first, seventh under the second, and so on). However, I
> can't think of a way to do this with a minimal amount of XHTML.
>
> So far, I've used divs to simulate layout-tables, but I believe a more
> elegant and flexible solution exists. Is there a way to do this with a
> minimum of XHTML, and using as much CSS as possible?[/color]

What's going in the list? Is it tabular data?

Regards,
Geoff
  #3  
Old July 20th, 2005, 11:45 PM
Neal
Guest
 
Posts: n/a
Default Re: Rendering long lists

On Thu, 27 May 2004 04:06:16 GMT, kelvSYC <kelvSYC@no.email.shaw.ca> wrote:
[color=blue]
> Say I have a really long list (more than 100 items, say). Because of
> the enormous vertical space it takes up, I decide to present them in a
> a way that I put five list items in a line (ie. the sixth item appears
> under the first, seventh under the second, and so on). However, I
> can't think of a way to do this with a minimal amount of XHTML.
>
> So far, I've used divs to simulate layout-tables, but I believe a more
> elegant and flexible solution exists. Is there a way to do this with a
> minimum of XHTML, and using as much CSS as possible?
>[/color]


You could float all the list items left. Set a width of 19%, or so.
Untested, but ought to work.

Or, set width: auto (again, this is untested). They won't line up pretty,
but you'll get maximum use of space.
  #4  
Old July 20th, 2005, 11:45 PM
Vladdy
Guest
 
Posts: n/a
Default Re: Rendering long lists

Neal wrote:
[color=blue]
> On Thu, 27 May 2004 04:06:16 GMT, kelvSYC <kelvSYC@no.email.shaw.ca> wrote:
>[color=green]
>> Say I have a really long list (more than 100 items, say). Because of
>> the enormous vertical space it takes up, I decide to present them in a
>> a way that I put five list items in a line (ie. the sixth item appears
>> under the first, seventh under the second, and so on). However, I
>> can't think of a way to do this with a minimal amount of XHTML.
>>
>> So far, I've used divs to simulate layout-tables, but I believe a more
>> elegant and flexible solution exists. Is there a way to do this with a
>> minimum of XHTML, and using as much CSS as possible?
>>[/color]
>
>
> You could float all the list items left. Set a width of 19%, or so.
> Untested, but ought to work.
>
> Or, set width: auto (again, this is untested). They won't line up
> pretty, but you'll get maximum use of space.[/color]
Here is a demo of what Neal suggested:
www.vladdy.net/demos/gallery.html


--
Vladdy
http://www.klproductions.com
  #5  
Old July 20th, 2005, 11:46 PM
kelvSYC
Guest
 
Posts: n/a
Default Re: Rendering long lists

In article <Xns94F5E254C1490geoffballdotca@24.71.223.159>, Geoff Ball
<usenet@geoffball.ca> wrote:
[color=blue]
> kelvSYC <kelvSYC@no.email.shaw.ca> wrote in news:260520042206151583%
> kelvSYC@no.email.shaw.ca:
>[color=green]
> > Say I have a really long list (more than 100 items, say). Because of
> > the enormous vertical space it takes up, I decide to present them in a
> > a way that I put five list items in a line (ie. the sixth item appears
> > under the first, seventh under the second, and so on). However, I
> > can't think of a way to do this with a minimal amount of XHTML.
> >
> > So far, I've used divs to simulate layout-tables, but I believe a more
> > elegant and flexible solution exists. Is there a way to do this with a
> > minimum of XHTML, and using as much CSS as possible?[/color]
>
> What's going in the list? Is it tabular data?[/color]

Not really. I used what is essentially a hack and an abuse of <div>
elements to deal with the whitespace concerns. I'm trying to find
something using CSS that doesn't abuse something like

<div style="display:table">
<div style="display:table-row">
<div style="display:table-cell">
</div>
</div>
</div>

--
I am only a mirage.
  #6  
Old July 20th, 2005, 11:46 PM
kelvSYC
Guest
 
Posts: n/a
Default Re: Rendering long lists

In article <qAjtc.23756$4%3.15806@nwrdny01.gnilink.net>, Vladdy
<vlad@klproductions.com> wrote:
[color=blue]
> Neal wrote:
>[color=green]
> > On Thu, 27 May 2004 04:06:16 GMT, kelvSYC <kelvSYC@no.email.shaw.ca> wrote:
> >[color=darkred]
> >> Say I have a really long list (more than 100 items, say). Because of
> >> the enormous vertical space it takes up, I decide to present them in a
> >> a way that I put five list items in a line (ie. the sixth item appears
> >> under the first, seventh under the second, and so on). However, I
> >> can't think of a way to do this with a minimal amount of XHTML.
> >>
> >> So far, I've used divs to simulate layout-tables, but I believe a more
> >> elegant and flexible solution exists. Is there a way to do this with a
> >> minimum of XHTML, and using as much CSS as possible?
> >>[/color]
> >
> >
> > You could float all the list items left. Set a width of 19%, or so.
> > Untested, but ought to work.
> >
> > Or, set width: auto (again, this is untested). They won't line up
> > pretty, but you'll get maximum use of space.[/color]
> Here is a demo of what Neal suggested:
> www.vladdy.net/demos/gallery.html[/color]

I like it, but is there a way that I can do this without having to make
a box whose sole purpose is to clear both sides (like that hr element)?

--
I am only a mirage.
  #7  
Old July 20th, 2005, 11:46 PM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Re: Rendering long lists

kelvSYC <kelvSYC@no.email.shaw.ca> wrote:
[color=blue]
> I used what is essentially a hack and an abuse of <div>
> elements to deal with the whitespace concerns.[/color]

I think you should explain what you are dealing with and trying to
accomplish, rather than give vague hints of what you are _not_ doing.

That is, please post the URL of the unstyled document, and explain what
the desired rendering is. This really depends on what kind of stuff you
have in the list, or "list".

--
Yucca, http://www.cs.tut.fi/~jkorpela/
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles