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

  • Home
  • SEARCH
  • 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 92679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:13:29+00:00 2026-05-10T23:13:29+00:00

I have the following HTML <div> <img id=image1 src=http://valleywag.com/assets/resources/2008/03/BlackGoogleLogo.jpg alt=Why doesn’t this float correcly?

  • 0

I have the following HTML

<div>     <img id='image1'          src='http://valleywag.com/assets/resources/2008/03/BlackGoogleLogo.jpg'           alt='Why doesn't this float correcly?'          style='border-width: 0px; float: left;' />     <div id='divText' style='font-family: Arial, Helvetica, sans-serif; font-size: 11px;'           class='txt-Normal'>         <div style='background-color: Green; color: White;'>             <p>                 <strong><span style='font-size: xx-large;'>This is going to be big title</span></strong>             </p>             <ul>                 <li>                     <span style='font-size: small;'>Foo</span>                 </li>                 <li>                     <span style='font-size: small;'>Bar</span>                 </li>                 <li>                     <span style='font-size: small;'>FooBar</span>                 </li>                 <li>                     <span style='font-size: small;'>BarFoo</span>                 </li>             </ul>         </div>     </div> </div> 

The text does not float around the image. It does not matter whether the browser IE or Firefox.

How can I fix this to float around the image?

  • 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. 2026-05-10T23:13:29+00:00Added an answer on May 10, 2026 at 11:13 pm

    The text does float around the image for me in IE6 and FireFox2. Is there any CSS that you’re leaving out for us to test?

    Here is what I see:

    Example 1 http://img214.imageshack.us/img214/6906/ff2topie6bottomhz5.gif

    The HTML example you provided is in an HTML document right? If so, what doctype are you using?

    If you are trying to make all of the text line up with the right side of the image, you may need to float your text’s container left as well. That will produce an output like this:

    Both Elements Floated http://img518.imageshack.us/img518/4619/bothfloatedsd7.gif

    You can do this by modifying your code like this:

    <div id='divText' style='font-family: Arial, Helvetica, sans-serif; font-size: 11px; float:left;' class='txt-Normal'> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 52k
  • Answers 52k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer The best way to do this is with varargs. Create… May 11, 2026 at 6:44 am
  • added an answer I can confirm that using SHCMBM_OVERRIDEKEY works on both PPC… May 11, 2026 at 6:44 am
  • added an answer IMHO, the most impactful feature is LINQ and lambda expressions May 11, 2026 at 6:44 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

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.