I'm working on a new site that has a two column layout underneath a title bar. If you check out:
http://www.christianleadership.org.u...h/mainpage.php
using IE or Opera you will see what I am after as these browsers work fine.
However, in FF the results are slightly different - take a look and you'll see that the <p>, within <div class="mainContent"> has shot way over to the right.
I've been working on this for 2days now and I'm getting more and more frustrated by the second.
Does anyone know why the layout would behave like this?
The code is simple:
[html]
<!-- style sheets included above this -->
<div class="pageContainer">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div class="topBannerContainer"></div>
<div class="leftSideBar">
<p>
This will contain the menus.
</p>
<p>
The menu displayed here will be dependant on the user profile.
</p>
</div>
<div class="mainContent">
<p>
This will contain the controls that allow the data to be created, viewed and edited. The data being manipulated is determined by the menu item selected.
</p>
</div>
</div>
[/html]
Expand|Select|Wrap|Line Numbers
- /* General Document Format */
- html, body, ul, ol, li, p, blockquote, q,
- h1, h2, h3, h4, h5, h6, fieldset, legend,
- form, label, a, div, img, dd, dt, dl, input, span, img
- {
- margin : 0px;
- padding : 0px;
- border : 0px;
- }
- body
- {
- font-family : verdana, "trebuchet MS", helvetica, sans-serif;
- font-size : 11px;
- line-height : 1.637;
- margin : 0px 0px;
- padding : 0px;
- height : 100%;
- text-align : center ;
- }
- /* Containers */
- div.pageContainer
- {
- width : 765px ;
- margin-left : auto ;
- margin-right : auto ;
- margin-top : 15px ;
- overflow : auto ;
- }
- div.topBannerContainer
- {
- position : relative ;
- margin-left : 0px ;
- margin-right : 0px ;
- width : 765px ;
- height : 125px ;
- background-image : url("../image/ResponseTrackerLogo.png") ;
- background-repeat : no-repeat ;
- }
- div.leftSideBar
- {
- position : relative ;
- float : left ;
- margin-left : 0px ;
- margin-right : 0px ;
- padding : 0px ;
- left : 2px ;
- width : 180px ;
- text-align : left ;
- border : solid 1px ;
- }
- div.leftSideBar p
- {
- padding : 0px ;
- margin : 0px 2px 5px 2px ;
- }
- div.mainContent
- {
- position : relative ;
- margin-left : 0px ;
- margin-right : 0px ;
- padding : 0px ;
- left : 200px ;
- width : 560px ;
- text-align : left ;
- border : solid 1px ;
- }
- div.mainContent p
- {
- padding : 0px ;
- margin : 0px 5px 7px 2px ;
- text-align : left ;
- }
Cheers
nathj