Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Surf boy #1
div tag / css
Hi, I know the time has come to stop using tables and move over to div tag / css
The problem that I am having is, how do you get the div tag to stay in the
centre of the screen? I have tried to set something up in css but it is not
working
Any ideas
Surf boy Guest
-
Murray *TMM* #2
Re: div tag / css
<body style="text-align:center;">
<div style="width:500px; margin:0 auto;">This will stay in the center of its
contaner</div>
</body>
You have to do three things:
1. To kick IE into action, you have to redefine the body tag with a center
text align.
2. You have to give your div a width.
3. You have to give your div auto margins left and right.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Surf boy" <webforumsuser@macromedia.com> wrote in message
news:dscbuu$9rq$1@forums.macromedia.com...> Hi, I know the time has come to stop using tables and move over to div tag
> / css
>
> The problem that I am having is, how do you get the div tag to stay in the
> centre of the screen? I have tried to set something up in css but it is
> not
> working
>
> Any ideas
>
Murray *TMM* Guest



Reply With Quote

