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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:17:45+00:00 2026-05-23T10:17:45+00:00

I have this html and CSS: <div style=background-color:Red; width:200px; height:200px;> <div style=background-color:Blue; width:50px; height:50px;

  • 0

I have this html and CSS:

<div style="background-color:Red; width:200px; height:200px;">

<div style="background-color:Blue; width:50px; height:50px; float:right;">aa</div>

<div style="background-color:Green; width:50px; height:50px;">aa</div>

I thought it would place the blue box after the green one (flow layout) but its moved it right over to the edge of the red container, which is really wierd..Any ideas why it doesnt flow?

  • 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-23T10:17:46+00:00Added an answer on May 23, 2026 at 10:17 am

    ‘float’ means ‘move to that side and allow anything following to appear on the opposite side’

    Since you are floating blue right, it appears on the far right hand side of its container.

    Since there is room next to Blue and Blue is floating, Green appears next to Blue. Green appears at the left hand side because it has nothing to alter its horizontal position from the default (such as margins, or touching Green).

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

Sidebar

Related Questions

I have this HTML: <style> div.icons { background-color:red; width:100px; height:100px; float:left; margin-right:10px; } </style>
<style> div#b { background-color:blue; } #b { background-color:red; } </style> <div id='a'> div a
I have this html: <div class=foo parent> <div class=child></div> </div> with some css: .foo{
let's say I have this set of HTML-markup and CSS #CSS .inputhelp_text { background:
I have a html like this: <html> <head> <link rel=stylesheet type=text/css media=all href=style.css> </head>
I want to achieve this using html and css: I have tried to set
This is probably a basic html/css question... I have a simple one-button form that
I have written this html, in Firefox, it displayed perfect what I want(the blue
Let's say you have a website where the body's background color is red and
I have this HTML code for radios: <input type='radio' name='a_27' value='Yes' id='a_27_0' /> <input

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.