# Centering alt content with SWFObject

**URL:** <https://forum.kirupa.com/t/centering-alt-content-with-swfobject/236504>\
**Category:** web dev\
**Created:** [August 21, 2007, 3:33pm UTC](https://forum.kirupa.com/t/centering-alt-content-with-swfobject/236504 "2007-08-21T15:33:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thalamus](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thalamus](https://forum.kirupa.com/u/thalamus)\
**Post date:** [August 21, 2007, 3:33pm UTC](https://forum.kirupa.com/t/centering-alt-content-with-swfobject/236504/1 "2007-08-21T15:33:58Z")

</div>

Hello:

I have been working on migrating from the old Flash embed code to SWFObject. I have centered the Flash movie in the browser using CSS, and it’s positioned where it should be:

\<style type=“text/css”\>  
\<!–

DIV.flash  
{  
position:absolute;  
left:50%;  
top:50%;  
width:800px;  
height:600px;  
margin-left:-400px;  
margin-top:-300px;  
background-color:#000000;  
}

–\>  
\</style\>

The problem: Now the original alternate keyword-rich content for the search engines is not centered. The upper left-hand corner of the alt content is pinned to the center of the page. I need to be able to center the alt content as well as the Flash movie.

How do I do this? another \<div\> class? - kind of like the milov.nl example elsewhere in this forum?

[http://www.milov.nl/code/css/verticalcenter.html](http://www.milov.nl/code/css/verticalcenter.html)
