These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:04 pm Advanced search

Horizontal lists

Here you can discuss stuff that doesn't fit elsewhere; anything you want really.

Horizontal lists

Postby rbirkby » Tue May 29, 2007 7:41 pm

Making horizontal lists out of ULs, LIs etc is currently a hack.

You have to change from a list-item display type to an inline display type. Because of this "hack", you cannot have horizontal lists with bullets (images or other style bullets). Or rather, you can have a bullet but that's another hack (background-image, content injection).

So, can I propose a horizontal-list-item display type?

I obviously have not thought out the full consequences of this - for example, how would you handle nested lists with horizontal-list-item? Do you use a vertical indent for nest lists?

I'm just a simple web dev who is struggling to produce simple and elegant HTML+CSS without hacks.
Posts: 1
Joined: Tue May 29, 2007 7:33 pm

Postby zcorpan » Tue May 29, 2007 9:50 pm

You should raise this at CSS is out of scope for WHATWG.

The proposal can continue to be discussed in this thread, though; I'm moving it to Off Topic.
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby Cerbera » Wed May 30, 2007 3:33 pm

Have you tried li { float: left; }?

How is changing the display type of an element a hack? How is background a hack? These are valid CSS properties.
Posts: 34
Joined: Wed Feb 21, 2007 1:04 pm

Return to Off Topic

Who is online

Users browsing this forum: No registered users and 1 guest