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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:38:45+00:00 2026-05-26T05:38:45+00:00

Given the following style: #myDiv{ background:orange; width:250px; } and the following HTML code: <div

  • 0

Given the following style:

#myDiv{
  background:orange;
  width:250px;
}

and the following HTML code:

<div id="myDiv">
    <p>
        Vote Pirates!<br />
    </p>
</div>

Why exactly would it change the size of the div when I add a float:left property to the myDiv style?

Edit: Turns out this is a browser-issue, or even worse an operating system specific problem.

  • 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-26T05:38:46+00:00Added an answer on May 26, 2026 at 5:38 am

    This seems like the likely answer: A floated box is taken out of the flow, so it doesn’t affect the block-level boxes around it.

    Lifted from this page on sitepoint.

    Also, you might be experiencing browser specific functionality (errors?). Are you using IE 6.0?

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

Sidebar

Related Questions

The web designer has given me HTML which looks like: <div .... style=background: transparent
Given the following code: HTML: <div id=nav_bar> <ul> <li ><a href=# class=current>HOME</a></li> <li><a href=#>GALLERY</a></li>
Given the following code: <div id=bla> <p class=blubber>Johnny Bananas</p> </div> and the style in
Given the following XML structure <html> <body> <div> <span>Test: Text2</span> </div> <div> <span>Test: Text3</span>
Given the following html <label for=inputelement>label</label> <input type=text id=inputelement name=inputelement /> You can style
Given following snippet in a view: <style type=text/css> input[type=text] { width: <%: Model.CmsConfiguration.cms_form_width %>px;
Given following html code: <ul> <li> <a href=somelink> <span class='someIconCss'></span> <span>home</span> </a> </li> [possibly
Given the following HTML: <!DOCTYPE html> <html lang='en'> <head> <meta charset='iso-8859-1' /> <title>Test</title> <style>
Given the following sample form code and CSS stylesheet Form <div class="Center_300 "> <button
Given the following: List<List<Option>> optionLists; what would be a quick way to determine the

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.