Reputation: 101
What is the trick to getting IE to display a <ul>
? I am working on a page with a php
extension. I have a simple list.
<ul>
<li>Stuff one</li>
<li>Stuff two</li>
<li>Stuff three</li>
<li>Stuff four</li>
</ul>
While on Safari and Firefox I get a list that renders properly, on IE it just displays a paragraph. I have not found one consistant answer on any websites about what could be the problem.
What's happening?
The template is from Matthew James Taylor's 3 column blog
style layout.
http://matthewjamestaylor.com/blog/perfect-3-column-blog-style.htm
The css is right in the page. Even when I go back and strip the site to bare bones the lists do not display.
Is there the possibility of screwing up the css because of a div style?
Upvotes: 0
Views: 540
Reputation: 109405
It could be that your CSS rules aren't complete. IE and Opera have a different interpretation of default list styles than other browsers, regarding whether the indentation is done with margins or padding. If you aren't applying the styles correctly, you can end up with a list that looks wrong on the browser you aren't testing on. Here is an article that goes into great detail on the differences between the browsers:
A List Apart: Articles: CSS Design: Taming Lists
Edit: And this one:
Upvotes: 0
Reputation: 9372
There is nothing wrong with the code, you should get a list of four items in all browsers (and all versions).
Check your code for conditional (MS specific) comments such as:
<!--IE > Hidden code, could be some CSS <![endif]-->
Upvotes: 1
Reputation: 29091
No, IE does not display <ul>
's as paragraphs. Something else is wrong. Is it possible that IE-specific css is altering the appearance?
Upvotes: 0
Reputation: 26096
IE 6,7,8 should all display unordered lists just fine...
My guess is you have something going on with CSS and/or JS that's causing the list not to be shown in IE.
Upvotes: 6