![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, |
|
I have an unordered list with 3 levels, like this: ul class="normalList" li>blabla</li ul li>blabla</li /ul |
#3
| |||
| |||
|
|
Chris wrote: Hello, G'morning. I have an unordered list with 3 levels, like this: ul class="normalList" li>blabla</li ul li>blabla</li /ul Whoa. The only thing allowed as a direct child of a <ul> is one or more li>. Your inner <ul>'s need to be *within* an <li>. li>blabla</li li ul li>blabla</li /ul /li> ... Sorry to contradict you but no. Your syntax would create additional |
#4
| |||
| |||
|
|
Beauregard T. Shagnasty wrote: Whoa. The only thing allowed as a direct child of a <ul> is one or more <li>. Your inner <ul>'s need to be *within* an <li>. li>blabla</li li ul li>blabla</li /ul /li> ... Sorry to contradict you but no. Your syntax would create additional bullets. |
|
You could write this: ul class="normalList" li>blabla ul li>blabla</li /ul /li |
|
But this would not solve my problem: there is still a shift to the right of the first list item. |
#5
| |||
| |||
|
|
Provide a sample URL. Here it is: http://ivredimages.free.fr/produits.php |
#6
| |||
| |||
|
|
Here it is: http://ivredimages.free.fr/produits.php See the page with IE6 or IE5.x |
#7
| |||
| |||
|
|
Sorry to contradict you but no. Your syntax would create additional bullets. You could write this: ul class="normalList" li>blabla ul li>blabla</li /ul /li The only difference between yours and Beauregard's is that you have |
|
But this would not solve my problem: there is still a shift to the right of the first list item. |
#8
| |||
| |||
|
|
Chris wrote: Beauregard T. Shagnasty wrote: Whoa. The only thing allowed as a direct child of a <ul> is one or more <li>. Your inner <ul>'s need to be *within* an <li>. li>blabla</li li ul li>blabla</li /ul /li> ... Sorry to contradict you but no. Your syntax would create additional bullets. But no? Stuff can be outside of a <li></li>? 'Fraid not. |
|
You could write this: ul class="normalList" li>blabla ul li>blabla</li /ul /li Yes, you could do that and not have an extra bullet. But, you have now enclosed the child <ul> within the outer <li> which is what I was commenting on that you were doing wrong. |
|
But this would not solve my problem: there is still a shift to the right of the first list item. Provide a sample URL. |
#9
| |||
| |||
|
|
Chris wrote: Here it is: http://ivredimages.free.fr/produits.php See the page with IE6 or IE5.x Win2K, IE6 and Firefox 1.0.3 look pretty much the same to me. Did your original effort have the nested <ul> outside of an <li>? For me, it is okay under Firefox. But under IE, the first line item is |
|
Asides: 1. <title>Untitled Document</title Yes I know but this page is just an attempt to find the right design. |
|
2. It won't fit in my 800px wide browser window without horizontal scrollbar. The width of this design is 800px. I should make it a bit smaller then. |
#10
| |||
| |||
|
|
No, you were commenting that he can't have child UL inside parent UL, which is correct. This is child UL inside parent LI, which is perfectly good HTML |
|
(though I would then also put the "blabla" right after the <li> tag into its own explicit block; otherwise, the UA will wrap it in an anonymous one). |
|
Provide a sample URL. Yes, please, I'm likewise not seeing why this would happen. I use this approach all the time. |
![]() |
| Thread Tools | |
| Display Modes | |
| |