![]() |
| Adobe Forums » Adobe Influences » Dynamic Html » how do you center always? no matter the browser |
| Tags: |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
I've got a layer with flash content. I want to keep this layer at the center
of the page regardless of the size of the browser. I've found many different ways to do this but I want the simplest way seeing as I've hardly got any code anyway on the page. |
|
|||
|
Change this -
</head> to this - <style type="text/css"> #wrapper { width:760px; margin:0 auto;position:relative; ** /* 760px will display on an 800px screen maximized browser window without */ /* horizontal scrollbars. */ </style> </head> change this - <body ...> (the ellipsis represents any other attributes that might be mentioned in the body tag, and SHOULD NOT BE INCLUDED EXPLICITLY!) to this - <body ...> <div id="wrapper"> and this - </body> to this - <!-- /wrapper --> </div> </body> and see if that helps. -- 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 ================== "stephdog" <webforumsuser@macromedia.com> wrote in message news:gbblrg$cs6$1@forums.macromedia.com... > I've got a layer with flash content. I want to keep this layer at the > center > of the page regardless of the size of the browser. I've found many > different > ways to do this but I want the simplest way seeing as I've hardly got any > code > anyway on the page. > |
![]() |
| Thread Tools | |
| Display Modes | |
|
|