Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 27th, 2011, 08:57 AM
Authorized User
 
Join Date: Jan 2011
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
Default Some site pages have margin

All my pages have a master page and I set the following CSS to centre the pages and remove the margins etc:

body
{
margin: 0;
padding: 0;
background: #D0D1D3;
margin: auto;
}
#PageWrapper
{
border-style: none;
border-color: inherit;
border-width: medium;
min-width: 990px;
height: 700px;
text-align: left;
margin-top: 0px;
border: none;
}
#MainContent
{
width: 630px;
min-height: 500px;
float: left;
}


My content place holder is in the MainContent Div. Whats wierd is that all my other pages (except the home page) seem to have a border on the left and so move slightly to the right - but I cant see where this is happening...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Negative margin morteza ASP.NET 4 General Discussion 1 February 5th, 2011 06:41 AM
When to use Padding, Margin and Position? chobo2 CSS Cascading Style Sheets 1 May 29th, 2008 08:58 AM
margin values? kennethjaysone CSS Cascading Style Sheets 2 December 23rd, 2007 05:32 AM
Inconsistent Margin-Left Behavior rsearing CSS Cascading Style Sheets 5 August 6th, 2007 12:35 PM
Printer Margin & Fillcolor blackdevil1979 Beginning VB 6 0 January 31st, 2005 04:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.