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 303907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:13:53+00:00 2026-05-12T07:13:53+00:00

I hope this is a simple one, but I can’t seem to be able

  • 0

I hope this is a simple one, but I can’t seem to be able to crack it quickly…

I’ve got a 2 column layout, with the content in the right column being dynamic and ajax driven. So the page height changes depending on what is in the right column.

I want to have a small flash file (400px x 200px) bolted on to the bottom of the page, but underneath column 1.

That’s easy. The problem is.. I want the flash to have a negative top margin of -200px, so it doesn’t get stuck out all on it’s own. This also reduces the wasted white space.

<div id="container">
  <div id="col_1" style="float:left; padding-bottom:200px;">Some static content</div>
  <div id="col_2" style="float:left">AJAX content</div>

  <div style="clear:left"></div>

  <div id="flash_container" style="margin-top:-200px;>
		<object>Flash file</object>
	</div>
</div>

I’ve simplified the code quite a lot, but you should see what i mean. Simple 2 columns, clear the columns, bung a negative margin on the flash div. Works fine in IE6, Safari, Fails miserably in Opera, Firefox and Chrome.

Can you apply a negative margin “through” a clear?

All help appreciated 😉

  • 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-05-12T07:13:53+00:00Added an answer on May 12, 2026 at 7:13 am

    Here you go:

    <div id="container" style="position: relative;">
      <div id="col_1" style="float:left; padding-bottom:200px; background-color: #235124;">Some static content<br />Another line</div>
      <div id="col_2" style="float:left">AJAX content</div>
    
      <div style="clear:left"></div>
    
      <div id="flash_container" style="margin-top: -200px; position: absolute;">
        <object>
          <param name="movie" value="boxheadrooms.swf">
          <embed src="boxheadrooms.swf" width="550" height="400">
          </embed>
        </object>
      </div>
    </div>

    Requires an extra div to wrap it all in but it is required to enable the relative positioning.

    Ignore the extra tags, flash objects and background colours I added, they were just to make the problem clearer to me when I was trying to understand what was happening.

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

Sidebar

Related Questions

Very inexperienced with Flash, but I hope this is simple enough for someone to
Hey everyone, this seems like it should be a simple one; I really hope
I'm hoping this will be a simple answer for one of you. We've got
This might be a simple question, but I moved one of my apps from
I hope this is a simple enough question for any SQL people out there...
Hope this makes sense... Is there a simple way to return a set of
Hope this is not a dupe. I would like to be able to do
I hope this question does not come off as broad as it may seem
I hope this question is not considered too basic for this forum, but we'll
I hope it's a simple one. I have a fresh install of Snow Leopard.

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.