html - Unwanted space between list item -


I have divs inside each list item and list item is a place before each list item on IE and FF. I'm pretty sure why this is doing this because it looks fine on chrome, I searched online and tried to put margin and padding on 0 and tried to put the code in the same line but I got it from my div Do not get rid of the above place. Those divisions that I have have jquery attached to them, so I'm not sure whether to influence it in any way? I checked online, some say that only Lee should be inside ul / ol, so I'm not sure that this is another reason for the unwanted place?

Just wondering if anyone knows what an unwanted space? If not, I have to use the second way (without the list) to get the desired result.

Thanks in advance.

My code

  & lt; Ol & gt; & Lt; Li & gt; & Lt; Div class = "doSomething" & gt; Test 1 & lt; / Div & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Div class = "doSomething" & gt; Test 2 & lt; / Div & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Div class = "doSomething" & gt; Trial 3 & lt; / Div & gt; & Lt; / Li & gt; & Lt; / Ol & gt;   

The result looks like

  1 Test1 2. Testing 2 3. Test 3    

I think those list items are displayed: inline-block; Here's how you can remove the location:

HTML

  & lt; Ul & gt; & Lt; Li & gt; Item 1 & lt; / Li & gt; & Lt ;! - - & gt; & Lt; Li & gt; Item 2 & lt; / Li & gt; & Lt ;! - - & gt; & Lt; Li & gt; Item 3 & lt; / Li & gt; & Lt; / Ul & gt;   

By connecting these, the browser must highlight the rest of the line as an html comment, to remove unwanted space.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -