Using Flash background behind HTML

Posted on 2006-04-20
Last Modified: 2010-05-18

I'm developing a site that uses a Flash background behind some HTML drop down menus. I used this technique (pulled from another post on this site):

Before the <object> tag in the published html file, right after the <body> tag, add this:
<div style="position: absolute; left: 0px; top: 0px; z-index: 0;">
Then add </div> right after </object>

Your content(reg html) should start right after that, but before your content put:
<div style="position: absolute; left: 0px; top: 0px; z-index: 5;">
Then after your content, before the </body> tag add: </div>

This will lay all your static content on top of your flash movie.


I works great except the client wants the page to be centered. Any suggestions?

Lisa Cowan
Question by:lisacowan
    LVL 17

    Accepted Solution

    Try with
    <div style="position: absolute; center: 0px; top: 0px; z-index: 5;">

    BR Dushan

    Author Comment

    Thanks for your help! That did the trick.


    Expert Comment

    LIsa, can I see your example??

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now