Weird CSS bug or just my lack of understanding or proper use?
by "Keith D Sellars" <Keith(at)webgraffix.com>
|
| Date: |
Fri, 7 Mar 2003 09:31:19 -0500 |
| To: |
<hwg-languages(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
Something has just driven me crazy (at least to the brink of sanity), but
I've finally figured it out.
I was using:
<style type="text/css">
<!--
BODY { padding-left : 0px; padding-right : 0px; MARGIN: 0pt}
--!>
</style>
... as a style definition for the body of my page.
Is it not allowed to include "MARGIN" in the same declaration for the body
as the "padding-left" and "padding-right? or should I simply not include
MARGIN at all? If the BODY declaration is listed as per above, and you
insert a comment tag ANYWHERE in the page, the contents of the page will not
display at all. If, however, you move "MARGIN" to a separate body
declaration (and wind up with 2 which may not be a good idea), then the page
DOES display.
For instance:
BODY {
SCROLLBAR-BASE-COLOR: #5A5A5A;
padding-left : 0px;
padding-right : 0px;
}
BODY {MARGIN: 0pt}
... will work just fine.
What would be the correct way of doing this? (making sure that I have zero
margins set in the style definition)
Thanks,
Keith D Sellars
WebGraffix
www.webgraffix.com
"Making database sites seem easy"
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.