|
Main Content Margins Not Working In Firefox
|
Logged in as: Guest
|
Name: | |
|

bbidderonoh
Posts: 5
Member since: 10/19/2008

|
Main Content Margins Not Working In ...
|
|
|
My site is a pretty basic design with a header, horizontal navigation bar, left side bar, and content in the middle, with a footer that bottom. The current content is very simple in design as well. My main content margins appear as I had planned in IE but when I view the site in Firefox they are not working. My footer also floats up in Firefox but not IE. I was wondering if anyone could help me with a fix. My site is at:http://akronaccountingservices.com/ <code> <!-- body { font: 100% Arial, Helvetica, sans-serif; margin: 0px; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #000000; } .wrapper #container { width: 100%; /*margin: 0 auto; the auto margins (in conjunction with a width) center the page if needed */ text-align: left; /* this overrides the text-align: center on the body element. */ background: #FFFFFF;} .wrapper #header { padding: 0px 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */ color: #FFFFFF; font-size: 1.5em; background: #000099; margin-bottom: 1px; } .wrapper #header img { margin-left: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */ padding: 0px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */ text-align: center; float: left; width: 5em; height: 3.35em; } .wrapper #header h1{ text-align:center; margin-bottom: .25em;} .wrapper #header p{ text-align: center; margin:0; } .wrapper #sidebar1 { float: left; width: 11em; /* since this element is floated, a width must be given */ background: #000099; /* the background color will be displayed for the length of the content in the column, but no further */ padding: 15px 0px; /* top and bottom padding create visual space within this div */ text-align: center; color: #FFFFFF; font: Arial; sans serif; font-size: .9em; } .wrapper #sidebar1 p {margin-right: 2px; margin-left: 2px; padding: 0;} .wrapper #sidebar1 h2 {color: #FFFF00; font-size: 1em; font-weight: bold; margin: 0 1px 0 1px; } .wrapper #mainContent { margin: 1em 0em 0 0em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */ padding: 0 2em 0 2em; /* padding here creates white space "inside the box." */ position: relative; } .wrapper #mainContent h3 { font-size: 1em; text-align: left; margin-top: 2em;} /*Home Page CSS*/ .home img {float: left; padding-right: 8em; padding-left: 1em;} /*Tax Page CSS*/ div#pricelist ul {margin:0; float: left; width: 35%; height: 8em; text-align: left; } div#pricelist ul h3 {background: #FFFFCC;} div#pricelist ul img {float:left; margin-left: 2em; } div#pricelist ul li {line-height: 1.5; list-style: none; font-weight: bold; margin-left: 8em; background: #FFFFCC; border: solid 1px; } div#inclist ul {margin: 0; } div#inclist ul h3 {font-size: 1em; background: none; margin-left: 7em;} div#inclist ul li {margin-left: 8em; width: 15em; background: none; list-style-type: square; border: none;} /*Contact Page CSS*/ .contact {text-align: center; width: 100%; } /* Navbar CSS */ div#navbar {height: 20px; Width: 100%; white-space: no wrap; border: solid 1px #ffffff; } div#navbar ul {margin: 0px; padding: 0; font-family: arial, sans-serif; font-size: 1em; font-weight: bold; color: #000099; line-height: 20px; white-space: no wrap; text-align: center; margin-left: 20%; margin-right: 15%; } div#navbar ul li {list-style: none; display: inline; padding: 1em; text-align: center;} </code> #footer { background: #eee; bottom: 0; color: #666; font-size: 11px; font-weight: bold; height: 14px; margin: 0; padding: 6px; width: 100%;
|
|
|
|
Report Abuse |
Date: 11/21/2008 5:38:55 AM
 |
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|