You can zero out everything with:
* {margin: 0; padding: 0}
Then if you go look at C:\Program Files\Mozilla Firefox\res\html.css you can
see what the defaults for Firefox are.
What I'm doing right now is creating an external stylesheet called
"crossBrowserSizes.css" where I dump those defaults, modified as desired.
Then I @import it into my site's stylesheet so I have a baseline to start
from.
What it doesn't fix is IE hasLayout bugs with the margin collapsing rules.
But I don't really know of anything that globally fixes that.
---
Kevin Graeme
Cooperative Extension Technology Services
University of Wisconsin-Extension
> -----Original Message-----
> From: Ray Champagne [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 03, 2006 11:21 AM
> To: CF-Talk
> Subject: Re: CSS UL IE help
>
> Thanks CSSandy (or is it CSSandra?). :)
>
> This is uber-helpful. Just dump this in the top of all my css
> definition files when I'm developing new sites, and I'm good to go?
> Kind of a "best practice"?
>
> Are you doing any CSS seminars at CFUnited?
>
> Sandra Clark wrote:
> > Each browser has its own style sheet which sets (among
> other things) default
> > margins and padding for each element. The best way I have
> found to combat
> > this is to specifically zero out all margins and paddings
> from all elements
> > first and explicitly set them up as necessary.
> >
> > h1,h2,h3,h4,h5,h6,p,ul,li,br,table,div,ol,a{
> > margin:0;
> > padding:0;
> > }
> >
> > It involves a bit more work, but I have found it creates
> more consistency
> > between browsers.
> >
> > Sandra Clark
> >
> > -----Original Message-----
> > From: Ray Champagne [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 03, 2006 8:46 AM
> > To: CF-Talk
> > Subject: CSS UL IE help
> >
> > I have a site I'm mocking up and am having some trouble
> with padding in my
> > ul list looking different in IE and FF. Take a look at the
> below URL
> > - the bottom green bulleted list looks great in FF, but has
> way too much
> > padding in IE. Anyone know how to fix that? Either Google
> can't find what
> > I'm looking for as far as answers go, or I'm not searching
> for the right
> > terms.
> >
> > Thanks for the help!
> >
> > Ray
> >
> > http://wwwcvwp.com/proulx/index.cfm
> >
> >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234110
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54