CSS margin in Firefox and IE. I'm tring to create a list <ul> with no left margin but I can't make it happen in Firefox.

Liked this question? Tell your friends about it

3 Answers

Order by
Oldest to Newest
Newest to Oldest
Votes

Lists recognise just about all the syle attributes, so you should be able to define any margin you like

margin-left: 0px;

or margin: 10px 10px 10px 0px;

If  you're having difficulties with this, check that you don't have another syle definition that is overriding the style on your list.

It might also help to get an answer if you send an example of your code or a link to a page where people can see it.

"The time has come" the walrus said "to speak of many things. Of shoes and ships and sealing wax. Of cabbages and kings. And why the sea is boiling hot and whether pigs have wings."

Firefox by default applies padding to the UL element, try setting padding-left to zero.

To get round problems with browser differences in default styles you can try using a CSS reset stylesheet.  This will reset all browsers to a common baseline, but you'll have to have style rules for every element you actually want to use (eg. headings become styled like the rest of the text).

<a href="http://www.boogdesign.com/b2evo/" rel="nofollow">boogdesign blog</a>

Hey try also the http://www.w3schoools.com and other designing magazines for the latest market trends!

Related Questions

Other people asked questions on similar topics, check out the answers they received:

Asked: PSD to CSS Software?

Is there any reliable software that can take site layout from PSD file and slice it using HTML/CSS to a full blown working web site?

Asked: Using html/css with aol mail

how can i send email that presents html/css as infomration with aol?
Staff

Asked: HTML/CSS standard for specifying copyright ...

Is there a standard or common convention for including an attribution to the copyright owner on an image in HTML? (See the blog post for an explanantion of why rel=license is not the solution I am ...