From: hzgt9b on
I am working on a site that is being served to a private network. All
the users are using IE6+.

I am having trouble getting the 1st div added to a containing div to
have its margin-left applied - right now it appears that it is getting
ignored. It only seems to be a problem with the 1st div added to the
containing div. If I add any other element before this first div (even
a comment) then the margin-left gets applied to the offending div.

QUESTIONS:
Does anyone know why the margin-left is not getting applied? If so,
any suggestions on how to fix it?

Here's a page showing the problem:
http://www.freewebtown.com/emailceloftis/noLeftMargin.html

Thoughts?
From: hzgt9b on
On Apr 23, 12:52 pm, hzgt9b <celof...(a)gmail.com> wrote:
> I am working on a site that is being served to a private network. All
> the users are using IE6+.
>
> I am having trouble getting the 1st div added to a containing div to
> have its margin-left applied - right now it appears that it is getting
> ignored. It only seems to be a problem with the 1st div added to the
> containing div. If I add any other element before this first div (even
> a comment) then the margin-left gets applied to the offending div.
>
> QUESTIONS:
> Does anyone know why the margin-left is not getting applied? If so,
> any suggestions on how to fix it?
>
> Here's a page showing the problem:http://www.freewebtown.com/emailceloftis/noLeftMargin.html
>
> Thoughts?

Anyone?
From: David Stone on
In article
<a7661506-9772-40c3-a62a-89d8277975ad(a)e39g2000hsf.googlegroups.com>,
hzgt9b <celoftis(a)gmail.com> wrote:

> On Apr 23, 12:52�pm, hzgt9b <celof...(a)gmail.com> wrote:
> > I am working on a site that is being served to a private network. All
> > the users are using IE6+.
> >
> > I am having trouble getting the 1st div added to a containing div to
> > have its margin-left applied - right now it appears that it is getting
> > ignored. It only seems to be a problem with the 1st div added to the
> > containing div. If I add any other element before this first div (even
> > a comment) then the margin-left gets applied to the offending div.
> >
> > QUESTIONS:
> > Does anyone know why the margin-left is not getting applied? If so,
> > any suggestions on how to fix it?
> >
> > Here's a page showing the
> > problem:http://www.freewebtown.com/emailceloftis/noLeftMargin.html
> >
> > Thoughts?
>
> Anyone?

I tried looking at your page earlier, but it didn't actually
seem to exist at the url you provided then.

Looking at it now in both Safari and Firefox (Mac), I see the
same left margin on both divs that you claim appear different.

What browser(s) are you seeing the problem in?
From: hzgt9b on
On Apr 24, 10:57 am, David Stone <no.em...(a)domain.invalid> wrote:
> In article
> <a7661506-9772-40c3-a62a-89d827797...(a)e39g2000hsf.googlegroups.com>,
>
>
>
>
>
>  hzgt9b <celof...(a)gmail.com> wrote:
> > On Apr 23, 12:52 pm, hzgt9b <celof...(a)gmail.com> wrote:
> > > I am working on a site that is being served to a private network. All
> > > the users are using IE6+.
>
> > > I am having trouble getting the 1st div added to a containing div to
> > > have its margin-left applied - right now it appears that it is getting
> > > ignored. It only seems to be a problem with the 1st div added to the
> > > containing div. If I add any other element before this first div (even
> > > a comment) then the margin-left gets applied to the offending div.
>
> > > QUESTIONS:
> > > Does anyone know why the margin-left is not getting applied? If so,
> > > any suggestions on how to fix it?
>
> > > Here's a page showing the
> > > problem:http://www.freewebtown.com/emailceloftis/noLeftMargin.html
>
> > > Thoughts?
>
> > Anyone?
>
> I tried looking at your page earlier, but it didn't actually
> seem to exist at the url you provided then.
>
> Looking at it now in both Safari and Firefox (Mac), I see the
> same left margin on both divs that you claim appear different.
>
> What browser(s) are you seeing the problem in?- Hide quoted text -
>
> - Show quoted text -

IE6, IE7
From: Bergamot on

hzgt9b wrote:
> On Apr 23, 12:52 pm, hzgt9b <celof...(a)gmail.com> wrote:
>>
>> I am having trouble getting the 1st div added to a containing div to
>> have its margin-left applied
>>
>> http://www.freewebtown.com/emailceloftis/noLeftMargin.html

What's with all the convoluted containers? This is way more complicated
than it needs to be, plus it's a most serious case of "div-itis".
http://microformats.org/wiki/posh

I bet if you simplified it, the problem would disappear on its own.

BTW, this:
#contents {
position:relative;
top:2em;
}

probably doesn't do what you think it does.
http://brainjar.com/css/positioning/

--
Berg