473,396 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Firefox ul li tag issues

2
Hi there,

I have a bulleted list that i am using to display certain items ..But if there is an ul within an li..it doesnt indent it and shows it close together in the next line

* This is great
* And so is this
o this is so cool

Even if "this is cool" has to be subitem its not showing as a subitem

this is the html code

Expand|Select|Wrap|Line Numbers
  1. <ul >
  2.     <li>This is great </li>
  3.     <li>And so is this
  4.     <ul>
  5.         <li>this is so cool </li>
  6.     </ul>
  7.     </li>
  8. </ul>
It shows perfectly in IE.

Any help is appreciated..

Thanks in advance
AC
Jun 16 '10 #1
6 3682
Dormilich
8,658 Expert Mod 8TB
works perfectly for me (FF 3.6)
Jun 17 '10 #2
drhowarddrfine
7,435 Expert 4TB
@AC1234
It shows perfectly in IE.
Hence your problem. If you use IE as a reference for how things should work you will always fail at what you are trying to do since IE can never be trusted to do anything right.

In this case, the problem probably lies with IE using margin instead of padding for bullets. (Or is it the other way around?)
Jun 17 '10 #3
JKing
1,206 Expert 1GB
Is there any CSS to go along with this HTML?
Jun 17 '10 #4
AC1234
2
Thanks so much for your reply..But for me it doesn't show up well in firefox

Also the following is specified in my css

Expand|Select|Wrap|Line Numbers
  1. ul{
  2.   text-align:left;
  3.  margin-top:-2px;
  4.    /* Removes browser default margins applied to the lists. */
  5.   padding:2px; /* Removes browser default padding applied to the lists. */
  6.   list-style-type:disc;
  7.  
  8. }
  9.  
This html is saved on a sharepoint page ..wonder if that is causing something
Jun 17 '10 #5
drhowarddrfine
7,435 Expert 4TB
Ignore what I said about the bullet points above since it doesn't apply here and I read the post too quickly.

The problem is you've changed the margin and padding to a very small number and the indentation is there. Firefox is performing correctly. I don't have IE available to check in that right now but if it isn't doing the same thing then, as always, it's wrong.

To check this, remove the line about padding and see what happens.
Jun 17 '10 #6
JKing
1,206 Expert 1GB
Firefox by default uses padding to indent lists while IE by default uses margins.
Setting the padding to 2px causes a minute difference on IE but causes a drastic decrease on firefox.

Also not sure if this was intended or not but you are only setting margin-top, not the left right or bottom margins. So you aren't really removing browser default margins as a whole.
Jun 17 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Shapper | last post by:
Hello, I have na Asp:DropDownList 2 things are not working in Firefox: CSS and Width. It works fine in Internet Explorer. How to solve this? Thanks,
4
by: L2XL | last post by:
I have an ASP.NET (VB) app that I created for the Windows and IE6 enviroment. When it runs under Firefox on Windows it looks similar but has some display issues. When I run it under Firefox on...
12
by: Brad | last post by:
Does anyone have any other solutions to the Firefox rendering problems with ASP.NET? I've tried the <browsercaps> web.config trick. It didn't work. Am I overlooking something else? Thanks!
9
by: WebMatrix | last post by:
I've been developing ASP.NET 1.1 application, testing it in IE 6.0 on my development machine. Of course, everything looks normal in IE as it should. Well, since it's going to be released to...
2
by: ddolheguy | last post by:
I'm having trouble pre-filling information into html <span> elements using javascript, just with Firefox. IE seems to work fine. I'm using the following: <script language='JavaScript'> ...
3
by: GaryDean | last post by:
If you go to my website, www.deanblakely.com, in I.E. you will see that it displays fine but if you browse it in FireFox 1.7 you will see stuff on the Master Page that is not alligning right. I...
1
by: terrybali | last post by:
Hi Guys I am new to forum and nontechnical. My site has several large flash files. I am looking for someone who can help us solve two problems. Willing to pay whatever normal rate is for this...
7
by: Carlos Mendonça | last post by:
Has anyone managed to get ClickOnce to work with Firefox? It seems to me that it still has the same issues VS 2K5 had. I appreciate any comments or tips.
2
by: Redligt World | last post by:
i have a adult based site i.m working on the works 100% ok in ie, but has major display errors in firefox You can view the site at http://www.redlightworld.com/premium Basically, the site views...
3
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.