CSS margin in Firefox and IE. I'm tring to create ...

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.


Share Send to a friend Watch Report
 
 

2 Posted Answers
Order by

 
309 helpful answers

I was late for work this morning, because I got stuck in Zeno's paradox.

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.

Posted 2007-06-11T14:37:17Z
 
17 helpful answers

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).

Posted 2007-11-09T18:39:22Z

Sign in to participate

Got an answer for aviche2? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

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


Q:

HTML/CSS standard for specifying copyright attribution on an image

Is there a standard or common convention for including an attribution to the copyright owner on an image in HTML? (See the blog ...
Submitted by Yaniv   1 year ago.
  • viewed 847 times
Last answer posted 11 months ago by Eran


Q:

Using html/css with aol mail

how can i send email that presents html/css as infomration with aol?
Submitted by llsr   8 months ago.
  • viewed 33 times


Q:

Flash object in css

In Programming: How do I insert a Flash object into a .css class, and then reference it from HTML code. Is it even Possible?
Submitted by nirh   3 years ago.
  • viewed 4591 times
Last answer posted 3 years ago by nirh



» More...

Explore Related Posts in Forums

Is there any way to accomplish a gradient color fading from one color to ...

I am looking to have a color gradient fade from one color to the next across a table but dont really want to accomplish this... this through an image, is there any way to do this with HTML or CSS? Categories : HTML Gradient CSS Fading Color Gradient...

Is there an app to convert HTML/CSS to FBML?

Is there an app or tool out there to convert HTML/CSS pages to FBML?

html css form looks different in IE7 when hosted on server - HTML / CSS

I have a html form styled with CSS.when i open it from the hard drive it looks fine.but when i host it on apache server and... and open it in IE7 it does not show css formatting.tried all i could.im really confused.pl help
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
ADVERTISEMENT
AOL Autos Q&A is powered by Yedda an AOL Company
Copyright © 2006-2010, Yedda Inc. and respective copyright owners