Page 1 of 1

Bullet shows up double space in IE browser

Posted: Fri Oct 14, 2005 10:41 am
by ljCharlie
I have an unordered bullet list and it shows up fine in Firefox but under IE browser v6, the bullet list have significant amount of spaces between them. Below are my code:

Code: Select all

<ul><!--
		  --><?php do { ?><!--
		  --><li><!--
				--><?php if($row_rsfoundMenu['idmnu_mnu'] == 0){ echo "<a href='".$row_rsfoundMenu['url_mnu']."'>".$row_rsfoundMenu['name_mnu']."</a>";} ?><!--
				--><ul><!--
					--><li><?php if($row_rsfoundMenu['idmnu_mnu'] != 0){ echo "<a href='".$row_rsfoundMenu['url_mnu']."'>".$row_rsfoundMenu['name_mnu']."</a>";} ?></li><!--
				--></ul><!--
		  --></li><!--
		  --><?php } while ($row_rsfoundMenu = mysql_fetch_assoc($rsfoundMenu)); ?><!--
		--></ul>
What can I do to resolve this problem? Help is appreciated.

Posted: Fri Oct 14, 2005 10:55 am
by Skittlewidth
I don't know what your code looks like in a browser but if its a case of distance between each list element then use a css style sheet to reduce the spacing around each list element by adjusting the padding and margin properties.

Posted: Fri Oct 14, 2005 11:13 am
by ljCharlie
Thank you for the response. That is correct. The spaces between each element is too big under IE browser. And no, I can't use CSS that is why I like to know if there is a way around this problem.

Posted: Fri Oct 14, 2005 12:13 pm
by Roja
ljCharlie wrote:And no, I can't use CSS
Why not?

Posted: Fri Oct 14, 2005 1:20 pm
by ljCharlie
Because we have to use the department's template.

Posted: Fri Oct 14, 2005 1:42 pm
by Roja
ljCharlie wrote:Because we have to use the department's template.
Template for what? If you can edit the file, you can put style inline.. I think you are confusing external stylesheets with inline style - both of which are CSS. The reason I ask in such detail is that the answer likely needs to *use* some form of CSS, so if inline AND external are unable to be considered, the possible answers are quite a bit fewer.

Posted: Fri Oct 14, 2005 2:32 pm
by ljCharlie
Sorry, yes I believed can use inline CSS. So how would I go about controlling the spaces then?

Again, thanks!

Posted: Fri Oct 14, 2005 3:42 pm
by feyd
padding and margin settings..

Posted: Mon Oct 17, 2005 9:48 am
by ljCharlie
Here is what I have and it's not working.

<style type="text/css">
ul {
margin: 0px;
padding: 0px;
}
li {
margin: 0px;
padding: 0px;
}
</style>

Posted: Mon Oct 17, 2005 9:51 am
by Chris Corbyn
Dumty dumty dum...

Moved to Client Side :D

Posted: Tue Oct 25, 2005 9:39 am
by AngusL
If it's related to viewtopic.php?t=37013 (which I suspect it is) then a solution is contained there.
I therein wrote:I don't use lists a lot, but a brief check confirms that

Code: Select all

li {padding-left:0px}
may well be what you're looking for.