Hi Bob,
Thanks for the suggestion but it didn't work! Stefan's suggestion did not work either. Any other ideas anyone?
Anyone know why a floated div is hidden in IE6?
Stephen
----- Original Message ----- From: "designer" <[EMAIL PROTECTED]>
To: <wsg@webstandardsgroup.org>
Sent: Thursday, April 28, 2005 1:21 PM
Subject: Re: [WSG] Two separate CSS issues
These days I always use:
#{margin : 0; padding : 0} at the start of my CSS. This removes all the 'default' padding, margins etc from everything, and you set your own, throughout.
Sometimes a pain if you're being lazy or in a rush, but it does allow for excellent control of your layout.
Bob McClelland, Cornwall (U.K.) www.gwelanmor-internet.co.uk
----- Original Message ----- From: "Stefan Lemmen" <[EMAIL PROTECTED]>
To: <wsg@webstandardsgroup.org>
Sent: Thursday, April 28, 2005 1:10 PM
Subject: Re: [WSG] Two separate CSS issues
For the first problem try this:
body, html { margin:0; padding:0; }
Stefan Lemmen Holland
On 4/28/05, Stevio <[EMAIL PROTECTED]> wrote:I am working on a 2 column layout with a header and footer, with thefooterdivs!):always pushed against the bottom of the page (or at the bottom of the content, if the page content is longer than the available space).
Here is the page (ignore the colours - they are just for identifyinghttp://www.cssweb.co.uk/templatetest.html
I am coming across two problems: 1) When viewing in Firefox - there is whitespace at the top of the page above the Document Heading, which is within an H1 tag. If I add: #header h1 { margin:0; } then this problem disappears.
Shouldn't the H1 be contained within the header div? Why is the above required? This problem does not happen in IE6.
2) When viewing in IE6 - the floated sidebar div (yellow with red border) does not appear on top of the pink space where it should be. Why is that?
Thanks,
Stephen
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 27/04/2005
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************