2 replies [Last post]
aigarinsh
Offline
Regular
Last seen: 11 years 30 weeks ago
Timezone: GMT+2
Joined: 2004-09-13
Posts: 34
Points: 2

Hi I have a list which needs another sublist inside. I have an outer list inside a div and an inner list inside another div like this:

<div id="menu">
				<ul>
					<li><a href="index.html">Privatizācijas aģentūra</a></li>
					<li><a href="index2.html">Privatizācijas process</a></li>
					<li class="active"><a class="active" href="index3.html">Privatizācijas iespējas</a></li>
						<div id="menuinner">
						<ul>
							<li><a href="index3.html">Izsoles</a></li>
							<li><a href="index3.html">Lattelekom</a></li>
							<li class="active"><a class="active" href="index3.html">Ventspils Nafta</a></li>
						</ul>
						</div>
					<li><a href="index4.html">Zemes privatizācija</a></li>
					<li><a href="index5.html">PA valdes lēmumi</a></li>
					<li><a href="index6.html">Iepirkums</a></li>
					<li><a href="index7.html">Statistika</a></li>
					<li><a href="index8.html">Biežāk uzdotie jautājumi/atbildes</a></li>
					<li><a href="index9.html">Saites</a></li>
				</ul>
			</div>

And I also have custom bullets as list item backgrounds. Explorer makes it the way I need, but Firefox moves the inside div to the left. Here are the examples:
http://www.martinanams.lv/problem/explorer.gif
http://www.martinanams.lv/problem/firefox.gif

aigarinsh
Offline
Regular
Last seen: 11 years 30 weeks ago
Timezone: GMT+2
Joined: 2004-09-13
Posts: 34
Points: 2

DIV in a list

OK, I overcame this problem not using sublist at all, but asigning different style to some list items.

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 6 years 23 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

DIV in a list

My comment would have been that the DIV is in an 'illegal' place - if you look down the tree it would be:

HTML UL DIV

It should be

HTML UL LI DIV
(ie wrap the DIV in the preceeding LI element).

although that will depend slightly on which DOCTYPE you're using.

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.