Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / September 2007



Tip: Looking for answers? Try searching our database.

Need Help Combining Horizontal and Vertical Lists

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pbd22 - 24 Sep 2007 04:07 GMT
Hi.

I am trying to make a horizontal list that counts (downward) and
a horizontal list that illustrates the time. Both list should be
formatted the same (except for the nomenclature). I seem to
be successful with the y axis but, in my horizontal list (time),
I can't seem to get it to scroll successfully.

Below is the link, thanks:

http://dushkin.googlepages.com/HorAndVertLists.htm
dorayme - 24 Sep 2007 04:22 GMT
> Hi.
>
[quoted text clipped - 7 lines]
>
> http://dushkin.googlepages.com/HorAndVertLists.htm

Sure looks like a job for a table. But what really is the job?

Signature

dorayme

Ben C - 27 Sep 2007 21:56 GMT
> Hi.
>
[quoted text clipped - 7 lines]
>
> http://dushkin.googlepages.com/HorAndVertLists.htm

The list items in the horizontal list are floats, and what floats do
when there isn't enough space horizontally is drop down below each
other.

The only way to stop that is to set an explicit width on the container.
But it's annoying and in many cases impossible to work out what width
should be manually.

Like many problems yours would be best solved by using display:
inline-block, but Firefox doesn't support inline-block.

If you're not too fussed about the exact widths and heights of the
items, you could just make them display: inline instead of float: left,
and give them some left and right padding instead of width (you can't
set width on inline items). Then set white-space: nowrap (or if that
doesn't work in IE, white-space: pre, or whatever white-space value you
eventually find that prevents line wrapping and does work in IE, if
there is one) on the ul that they're in.

Otherwise use a table as dorayme suggested. Use a table anyway since
you're doing a table.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.