Css Ordered List problem FF and IE

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi...I've got this problem...I hope somebody will help me....

I have this ordered list and I want every element of the list aligned
to the left border of the containing div, just like the text above and
In firefox works perfectly, but in IE every element of the list is
slightly on the left of where I want it to be.

Thank You
Here's the code:
    position:absolute; left:10px;
    border:1px solid #404040;
    padding: 4px;

ol {
  margin:0 0 0 1em;
  padding:0 0 0 1em;
<div class=3D'normal'>
<br />Allora, prima di tutto, vediamo cosa ci serve.
<ol><br />
<li>Un certo numero di quotidiani (la carta di quotidiano la
migliore per la cartapesta - se non li leggete, iniziate a farlo)</li>
<li>Una bacinella</li>
<li>Un paio di tonnellate di colla vinilica (:D)</li>
<li>Filo di ferro (o qualcos'altro se vi vengono altre idee); quello
che ho usato io spesso circa 1,5mm</li>
<li>Nastro adesivo di carta</li>
</ol><br />Adesso vediamo i passi principali:</div>

Re: Css Ordered List problem FF and IE

ok first of all stop using internal style sheets. cut and paste your
css into a separate text document and save it as style.css

now put this code inbetween the <head></head> tags like this:

               <link rel=3D"stylesheet" type=3D"text/css"
href=3D"style.css" />

now make a new text document called "ie6.css" or "ie7.css" and
copypasta all your css from your style.css document and make changes
accordingly for ie6 or 7 so that your page displays proper.

now put this in your header:

               <link rel=3D"stylesheet" type=3D"text/css"
href=3D"style.css" />
                <!--[if IE 6]>
              <link rel=3D"stylesheet" type=3D"text/css"
href=3D"iespecific.css" />
             <!--[if IE 7]>
              <link rel=3D"stylesheet" type=3D"text/css"
href=3D"iespecific.css" />

Quoted text here. Click to load it

Re: Css Ordered List problem FF and IE

SigelsTankM, first of all, thanks for your reply.

I do have a separate style sheet actually, but this is not my real
page, it's just a portion of the text I have to display with the
relative style. I put everything together to make the code easier to

Do I have exactly put something like <!--[if IE 6]> in the header to
decide which css to use?

By the way, what I needed to know is what to put in IE css to get the
same result of Firefox, that is, to get the list aligned to left.

This is what I mean:

Internet Explorer:

I just want the list aligned as in Firefox, but I can't get the same
result in IE, no matter what I try (at least what I tried)

Thank you again

Re: Css Ordered List problem FF and IE

Sorry SigelsTank, I was so stupid....your answer was satisfing
enough....I was so distracted that I had'nt realized that I already
had the solution....Actually, with conditional comments I can easily
use a customized css for IE; so I just need to adjust the margin and
padding as I need.

thank you

Re: Css Ordered List problem FF and IE

Gan Forr wrote:
Quoted text here. Click to load it

The subject of list marker alignment came up in the ciwa.stylesheets
newsgroup just a couple weeks ago.


Site Timeline