|
Tailslide -> RE: Unwanted Horizontal Scrollbar and a FF problem (11/15/2008 2:39:10)
|
Hi Duane - did you fix it? No scrollbar in any browser for me. As far as differences in positioning - I always start stylesheets off with a set of reset rules - this removes all the standard margins and paddings and introduces a few to standardise across browsers. Mine currently looks like this: /**************** Style Resets **********************/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td {margin:0; padding:0;}
h1,h2,h3,h4,h5,h6,p,pre,blockquote,ul,ol,dl,address {margin:1em 0;}
li, dd, blockquote {margin-left:1em;}
html, body, fieldset {font:100.1%/120% Arial, Helvetica, sans-serif;}
input, select, textarea {font-size:100.1%;}
h1, h2, h3, h4, h5, h6 {font-size:100%;}
form label{cursor:pointer;}
fieldset, img{border:none;}
table{border-collapse:collapse; border-spacing:0;}
ul li {list-style-type:square;}
hr {height: 1px; background-color: #E5E5E5; color: #E5E5E5; border: none; padding: 0; margin: 1em 1em;} Now the problem with the main content area looking lower down in Firefox is to do with the top margin default for headings in Firefox as opposed to IE - so with the above resets, you would at least get the same top-margin across all of them (which obviously you can overrule later on if required).
|
|
|
|