Click here to get back home

What good is margin-bottom in IE?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
What good is margin-bottom in IE? George Hester 11-03-2004
Get Chitika Premium
Posted by George Hester on November 3, 2004, 1:28 pm
Please log in for more thread options
I have this DIV at the very bottom of a html.

<head>
<style type="css/text" media="all">
<!--
#oFoot { position: relative;
left: 0px;
width: 100%;
height: 50px;
filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr='#FF0000',
endColorStr='#FCCCCF', gradientType='0');
text-align: center; }
-->
</style>
</head>
<!-- -->
<div id="oFoot">
<!-- a table -->
</div>
</body>
</html>

My trouble is this <div> is not flush with the bottom of the document. There is
a gap of about 50px. Any ideas how to fix this? If not it seems that
bottom-margin in IE is superfalous.

--
George Hester
__________________________________


Posted by jmm-list-gn on November 3, 2004, 11:29 am
Please log in for more thread options
George Hester wrote:
>
> My trouble is this <div> is not flush with the bottom of the document. There
is a gap of about 50px. Any ideas how to fix this? If not it seems that
bottom-margin in IE is superfalous.
>
An URL would be a lot more useful.
Your stylesheet does not use margin-bottom. There is nothing in your
example (which, BTW, is invalid html) that would push the div to the bottom.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Posted by George Hester on November 3, 2004, 10:23 pm
Please log in for more thread options
> George Hester wrote:
> >
> > My trouble is this <div> is not flush with the bottom of the document.
There is a gap of about 50px. Any ideas how to fix this? If not it seems that
bottom-margin in IE is superfalous.
> >
> An URL would be a lot more useful.
> Your stylesheet does not use margin-bottom. There is nothing in your
> example (which, BTW, is invalid html) that would push the div to the bottom.
>
> --
> jmm dash list (at) sohnen-moe (dot) com
> (Remove .AXSPAMGN for email)

Hi. Could you explain what is invalid about it? Of course I didn't give you
the entire code. I don't think that was necessary. In any case you were right.
I just added:

<style type="text/css">
<!--
/* stuff */
body { margin-bottom: 0px; }
-->
</style>

That did what I wanted. The <DIV is now flush with the bottom of the page. In
IE anyway. Thanks.

--
George Hester
__________________________________


Posted by jmm-list-gn on November 3, 2004, 7:27 pm
Please log in for more thread options
George Hester wrote:
>
> Hi. Could you explain what is invalid about it? Of course I didn't give you
the entire code. I don't think that was necessary. In any case you were right.
I just added:
>
The sample code is missing the <body> tag. It is because of these sorts
of errors that we insist on an URL.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Posted by Michael Fesser on November 4, 2004, 5:13 am
Please log in for more thread options
.oO(jmm-list-gn)

>George Hester wrote:
>>
>> Hi. Could you explain what is invalid about it? [...]
>>
> The sample code is missing the <body> tag.

Not necessary in HTML.

OK, document type declaration and title were missing ...

Micha


Similar ThreadsPosted
good web host? December 1, 2004, 8:21 pm