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. 6 2552
kelvSYC <ke*****@no.email.shaw.ca> wrote in news:260520042206151583% ke*****@no.email.shaw.ca: 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?
What's going in the list? Is it tabular data?
Regards,
Geoff
On Thu, 27 May 2004 04:06:16 GMT, kelvSYC <ke*****@no.email.shaw.ca> wrote: 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?
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.
Neal wrote: On Thu, 27 May 2004 04:06:16 GMT, kelvSYC <ke*****@no.email.shaw.ca> wrote:
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?
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.
Here is a demo of what Neal suggested: www.vladdy.net/demos/gallery.html
--
Vladdy http://www.klproductions.com
In article <Xn****************************@24.71.223.159>, Geoff Ball
<us****@geoffball.ca> wrote: kelvSYC <ke*****@no.email.shaw.ca> wrote in news:260520042206151583% ke*****@no.email.shaw.ca:
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?
What's going in the list? Is it tabular data?
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.
In article <qA*******************@nwrdny01.gnilink.net>, Vladdy
<vl**@klproductions.com> wrote: Neal wrote:
On Thu, 27 May 2004 04:06:16 GMT, kelvSYC <ke*****@no.email.shaw.ca> wrote:
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?
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. Here is a demo of what Neal suggested: www.vladdy.net/demos/gallery.html
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.
kelvSYC <ke*****@no.email.shaw.ca> wrote: I used what is essentially a hack and an abuse of <div> elements to deal with the whitespace concerns.
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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Novice |
last post by:
Hi all, I'm wondering if there is an easy way to create ordered lists
of different types - for example I can get the following:
1. one
2. two
from:
<ol>
<li> one
<li> two
</ol>
|
by: Saku |
last post by:
Greetings,
I'm having problems with correct rendering of an aligned image and
list items. The following test page demonstrates the issue:
----------clip---clap---clip---clap----------
<html>...
|
by: Timo Nentwig |
last post by:
Hi!
Is it possible to render
<ol>
<li>one</li>
<li>two</li>
...
</ol>
|
by: David Whitney |
last post by:
All:
I have a control that renders a table. As the table is rendered, each
row in the table is constructed by creating a run-time (dynamic)
object that is derived from an HtmlTableRow. The row...
|
by: Adam Smith |
last post by:
Not sure if this is the best place for this but here goes...
I'm trying to create a dynamic newsletter generator.
There will be several controls to select from to generate the layout of the...
| |
by: sean |
last post by:
SELECT drop-list width incorrect for long text when SELECT is fixed width
Setting the width style of a SELECT statement causes the contents of the
drop-list to be cropped.
This is problematic...
|
by: Spotnick |
last post by:
I have no idea why, but since I'm trying to recreate my website using
ASP.NET 2.0 I've encountered so many performance issues that I'm about to
give up and continue using v1.1
Seriously, how can...
|
by: Laszlo Nagy |
last post by:
Hello,
I'm looking for a library that can do the following:
* Parse a simple structured text file (XML or HTML etc.)
* Render its output to an image
* I would like to give the maximum width...
|
by: SAL |
last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps
section of either web.config or machine.config but it didn't work.
It seems that most pages in my webapp are okay but a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |