Notice that the correct code for centering is margin-left: auto;
margin-right: auto;
You should also know that this wont work in IE.
Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Murray [private.php?do=newpm&u=]
Posted At: 25. juli 2004 19:08
Posted To: microsoft.public.frontpage.client
Conversation: CSS margins on page elements?
Subject: Re: CSS margins on page elements?
Those are for absolute positioning. This is not an absolutely
positioned division.
Using those fields will give me this (for example) -
#foo { position:absolute; top:10px; left: 150px; }
but I don't want it to be absolutely positioned.
What I want is this -
#foo { position:relative; width:760px; margin:0 auto; }
so that it's centered on the page. I can get the position:relative from
the properties, but I can see no way to get at the margins. I'd like to
have a set of fields identical to the padding fields under the border
category, except for margins.
--
Murray
"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Did you try inserting values in the Left, Right, Top and Bottom
fields?
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage) WEBMASTER Resources(tm)
> http://www.ycoln-resources.com FrontPage Resources, WebCircle, MS KB
> Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Murray" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Nope - there are no margin fields there (see snap).
> >
> > And to get to this, I had to use FORMAT | Style > select the div id,
> > and Modify.... Properties for the div only showed character-type
properties.
> >
> > So - I can find no way to do margins on anything other than the page
itself
> > using the UI. Is that correct?
> >
> > --
> > Murray
> >
> > "Jens Peter Karlsen[FP-MVP]" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > In properties for the div click Position. The rest should give
itself.
> > >
> > > Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
> > >
> > > -----Original Message-----
> > > From: Murray [private.php?do=newpm&u=]
> > > Posted At: 25. juli 2004 16:19
> > > Posted To: microsoft.public.frontpage.client
> > > Conversation: CSS margins on page elements?
> > > Subject: CSS margins on page elements?
> > >
> > >
> > > I have a division on a page, e.g.,
> > >
> > > <body>
> > > <div id="foo"></div>
> > > </body>
> > >
> > > and I want to position this division using CSS margins. How do I
> > > do that in the FP2003 UI?
> > >
> > > --
> > > Murray
> > >
> > >
> >
> >
> >
>
>