Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7910287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:49:00+00:00 2026-06-03T12:49:00+00:00

XHTML is still a very poor language and you have to try for many

  • 0

XHTML is still a very poor language and you have to try for many tricks in order to achieve simple results, as centering an object, and to obtain them on every browser. That’s my problem.
So, I have a image that is covering the entire page. It is not a background, because I want it to fit the screen and a background doesn’t do that. My image is positioned as absolute.
Now, what I want is a flash swf to be centered horizontally over the image. Sometimes it works, but only on non-IE browser (as always). Sometimes it doesn’t on any browser. The problem is that I just don’t know how to make the flasj object being centered over the image. It always appears at the top left part of the screen.
My code is something like this:

<body style="margin: 0px auto; text-align: center; width: 100%; height: 100%;">
    <object type="application/x-shockwave-flash" 
        height="100" width="200" 
        style="position: absolute; float: top; margin: 10px auto; z-index: 1;">
        ...
        ...
    </object>
    <img src="image.jpg" height="100%" width="100%" 
        style="postion: absolute; left: 0px; top: 0px; z-index:-1;" />
</body>

The main problem is that I cannot see the flash center in IE (Impossible to Explore) browser. What do you think? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:49:01+00:00Added an answer on June 3, 2026 at 12:49 pm

    First I highly recommend swfobject, the widely used standard for embedding flash into html.

    http://code.google.com/p/swfobject/

    If you’d like to keep going with the object tag, try wrapping it in a div and set your positioning properties on the div, not the object tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are many threads regarding this very topic on this form; however, I still
I have a .xhtml with two commandlink buttons and two outputpanels. Everything inside same
In my xhtml page I have the following tag included: <f:view locale=#{languageBean.locale}> ... </f:view>
I'm working on a very simple Firefox extension that will log info and dynamically
I'm making a very simple ad button system using ASP.NET 2.0 The advertisment is
I'm still on the road of learning JSF. I have an IceFaces tree with
I have a document using XHTML Transitional. In the body I use a <noscript>
In my .xhtml page, I have the following form: <ui:composition xmlns:ui=http://java.sun.com/jsf/facelets template=./../template/CustomerTemplate.xhtml xmlns:h=http://java.sun.com/jsf/html xmlns:f=http://java.sun.com/jsf/core
I have a JSF project and I already have an index.xhtml page which is
I'm writing very simple application. It is supposed to download files from internet. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.