Flash Alignment
- Started
- Last post
- 17 Responses
- ammedia
Just finished this site http://redlightknights.com/. Client keeps telling me the site is aligned at the bottom instead of top, so he has to scroll up to see the top of the page.
I set alignment to "top" in Publish Settings, and it works fine on my browser. Is there any code I can add to the html to make it align top in all browsers?
- kyl30
what's the stage size, seems the site is set to have 200px or so on top. is that in the flash or html
- ammedia0
the stage size is 1024x768 iin flash
- ammedia0
there's no space above the movie in the flash file, the graphics are flush against the top of the stage
- kyl30
what about the html?
- ammedia0
the html is just straight from flash's publish settings with the vertical alignment set to "top" i'm checking it out to see if i can find 200 px anywhere
- kyl30
tha t was just an approximate
- ammedia0
ok. actually if you view page source, the html file will show. but i didn't see anything that looked like it would add space to the top
- kyl30
is all that code generated by flash, mainly the detect scripts, etc. seems pretty bloated.
anyways heres a nice simple vertical and horz centering explaination.
- ammedia0
yeah it's all generated by flash. it is pretty bloated, i'm going to repubilsh it to get rid of the extra code. thanks i'll check out the tutorial
- kyl30
nice little flash detect script
- ammedia0
cool, thanks
- kyl30
you can also look at the source for this page
http://www.blacklabelsf.com/inde…the css and everything is right there. just change all the dimensions to match your swf's size
- ammedia0
good idea. i should have thought to check another flash site for the code.
- kyl30
err... well that's one of my sites that uses the centering technique. just thought it would be easier for you to see it in action.
- Nac_part20
whats his screen res set at?
- ammedia0
not sure about the screen res.
- ammedia0
yeah that helps to see it in action, kyl3. i'll use the flash detect script along with the centering technique, see if it works