This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > April 2006 > Horizontal list problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Horizontal list problem
DarthDevilous@gmail.com

2006-04-19, 6:44 pm

I've been trying to lay out a list horizontally, like at
http://www.w3schools.com/css/tryit....e=trycss_float5 , but I'm
having some problems. The HTML Structure is
<div id="page_footer">
<ul id="categories">
<li><div class="category">
Home
<ul>
<li><a>somelink</a></li>
etc
</ul>
</div></li>
etc
</ul>
</div>
The CSS I'm using is
#page_footer #categories { float: left; }
#page_footer .category { float: left; width: 10em; }
#page_footer #categories > li { display: inline; }
in Firefox this works fine, but in IE the result is staired, i.e.
further list items are a placed a line lower than their preceding item.
Am I doing something wrong or is there a workaround?
The page I am testing this on is at http://darthdevilous.da.funpic.de/

DarthDevilous

2006-04-19, 6:44 pm

Solved - found a site with plenty of examples of lists...
http://css.maxdesign.com.au/listamatic/

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews