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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:20:54+00:00 2026-05-24T04:20:54+00:00

Sorry, I don’t have the exact code with me, but hopefully this works with

  • 0

Sorry, I don’t have the exact code with me, but hopefully this works with the example I provide.

Why is it that in IE, some nested divs pop out and sit in the wrong place (example, 200px down from where it should be).

<div style="width:1024px;height:103px;background-color:green;">
    <div style="float:left;width:300px;height:103px;"><img src="LOGO URL"/>
    </div>
    <div style="float:right;width:180px;height:103px;">
    </div>
</div>

Does anyone understand what I mean? I’m pretty sure it has nothing to do with double margins. Should I still bother making website compatible with IE7 and 6?

I’m trying to learn html the proper way. I want to be able to ensure my code is always compatible with all browsers and accessible to the disabled. Is there somewhere you would recommend that I can learn the “correct” practices? I understand most HTML, but compatibility can have issues.

  • 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-24T04:20:55+00:00Added an answer on May 24, 2026 at 4:20 am

    Your IE problem is most likely because float:right element is appeared after it’s siblings. (see number 3 below).

    Speaking about how to learn HTML and CSS best practices, I would recommend playing around with CSS Zen garden to see how different amazing designs are built using a “static” html.

    Looking at the HTML I see following issues:

    1. Specifying static width and height is not a good idea
    2. float right element should appear before any other sibling (otherwise IE can not render it properly) – (this is most likely the issue).
    3. Having float:left for the other element is not necessary
    4. adding a clear:both in the end of all siblings will ensure that parent will expand in height (without the need to specify height)

    so I would change your HTML to this:

    <div>
        <div style="float:right;"></div>
        <div><img src="LOGO URL"/></div>
        <div style="clear:both"></div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry that I don't have an example. However I'm creating a scrolling box (scrolls
Sorry, I'm sure this is an easy test but I don't have access to
Sorry, I know this question is easy, but I don't know how to get
Sorry i don't have any code written because i have never written vba in
Sorry I don't have a good title... I was reading this thread: Vector Matrix
I have some code that gets two Time Picker's content and displays them individually
Sorry but I don't know how to ask this better. This is my main
I'm sorry but I don't really completely understand how mod_rewrite works but I'd like
I am new to javascript so sorry I don't know very much. I have
Sorry for unclear subject but i really don't understand where problem. I use a

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.