> Thanks Vina....but i was also wondering where i can find to center my
> Flash in
[quoted text clipped - 3 lines]
> this
> automatically into the code no???
wrazoru,
As Vina suggested just insert your flash into a DIV then apply a CSS style
to centre it.
You can set it up using Dreamweaver (see below if you really want to do
that) but its probably easier if you just insert the CSS and DIV tags
directly into your HTML source code.
I would create a DIV box that is the same size as you flash movie using CSS
(eg 200x200 as below)
Heres the CSS style code you place in the head of your code after <title>
tag:
<style type="text/css">
<!--
#centre {
margin: auto;
height: 200px;
width: 200px;
}
-->
</style>
Then in the body section of your html
<body>
<div id="centre">
YOUR FLASH MOVIE WILL BE INSERTED HERE
<div>
</body>
In DW8
1. Create DIV : you can use the layout panel to "insert DIV tag" which will
open a prompt with 3 fields Insert, class and ID
lave insert set to "Wrap around selection" and set ID to the name of your
tag (I called mine "centre" as above)
2. Create CSS Style: Goto CSS Styles and add "new CSS rule" (click on the +
icon at the bottom of the style window) this will bring up a prompt window
set "Selector Type" to "Advanced (IDs, pseudo-class selectors)" and set
"Selector" to #centre (or # + Name of you DIV tag ID).
Finally set "Define in" to "this document only" .. press OK
Now you can edit your style in the CSS styles panel .. if you select all
rules you will se a style called #centre ...right-click on that and select
Edit
you'll see a whole bunch of stuff you can edit like background, font type,
colour etc
.... but we only need to edit the Box properties (4th from top) select that
then set Width, Height to size of your Flash Movie or bigger ?? and then
set the Marg in as "same for all" and "auto"
3.Insert you flash movie into the centred DIV box
TOLD you it was involved ... DW8 can be a good way to start visually
learning CSS though
Cheers
rok