Afficher un message
Vieux 02/06/2008, 13h47   #2
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Keeping Things Centered

Centering anything within its container is simple - use CSS to assign an
explicit width, and auto left/right margins, e.g.,

<div style="width:210px;margin:0 auto;">This will be centered within its
container</div>
(inline CSS shown for clarity)

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"filmbufs" <webforumsuser@macromedia.com> wrote in message
news:g200nu$64s$1@forums.macromedia.com...
>I am exhausted, lost and confused. Otherwise, I'm happy. If I use one of
>DW's
> 3 column templates, how can I insert a div in the middle column, for
> instance,
> and still keep that div centered (not fixed) within the document?
> Everything I
> read suggests the beauty of a div is the ability to control position.
> They
> forget to mention anything about keeping it centered within a column.
>
> Any would be appreciated.
>


  Réponse avec citation
 
Page generated in 0,04974 seconds with 9 queries