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

The Archive Base Latest Questions

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

<div id=wrapper1 style=width:200px;float:left;margin-top:0px> <img src=./profilepic.jpg width=190px height=220px/> </div> <div id=wrapper2 style=width:400px;float:left> <h2>cool</h2> </div> <div

  • 0
<div id="wrapper1" style="width:200px;float:left;margin-top:0px">
    <img src="./profilepic.jpg"  width="190px" height="220px"/>
</div>
<div id="wrapper2" style="width:400px;float:left">
    <h2>cool</h2>
</div>
<div id="wrapper3" style="width:300px;float:left">
    <h2>Thanks</h2>
</div>

These are my three wrappers. I want them to float one after the other, but wrapper3 is sometimes getting positioned to the bottom of the wrapper2 , I want wrapper1 to take 200px and following wrapper2 400px and wrapper3 300px total 900px.

How can i make them float one after the other in such a way that they occupy 900px?

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

    Before I answer

    Let me just tell you a few things about good practices and the such.

    • It is considered bad practice to use inline styling (the style= attribute). Use a stylesheet instead (<style> tags), it allows the grouping of similar elements and reducing of code. Not to mention the separation of content from presentation.
    • the width= and height= attributes of the <img> tags do not require (and in fact do not validate with) the px in the end. You should correct to width="190" height="220".

    The Answer

    You want to wrap all 3 of them in a container which is set to width: 900px; (or min-width: 900px; for that matter).

    Here’s an Example

    HTML:

    <div id=parent>
        <div id=wrapper1>Lorem Ipsum</div>
        <div id=wrapper2>Lorem Ipsum</div>
        <div id=wrapper3>Lorem Ipsum</div>
    </div>
    

    CSS:

    #parent { /* Applies to parent div */
        min-width: 900px;
    }
    #parent div { /* Applies to all divs within the parent */
        height: 200px;
        float: left;
    }
    
    /* Specific div styling (width and background color) */
    #wrapper1 {
        width: 200px;
        background: red;
    }
    #wrapper2 {
        width: 400px;
        background: green;
    }
    #wrapper3 {
        width: 300px;
        background: blue;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

div#thing { position: absolute; top: 0px; z-index: 2; margin: 0 auto; } <div id=thing>
<header> <div id=logo_box style=-webkit-border-radius: 0px;border-radius:0px;padding:33px;> <h1><a href=index.html id=logo><img src=images/Logo_black_blue.png/><span></span></a></h1> </div> <nav style=z-index:100;margin-top: -50px;float: right;>
Snippet of my CSS: #wrapper div.box { background: url('box-bg.png') left top repeat-y; } #wrapper
I set the margin of div#hdesign to margin:0px 250px to put it to the
Say there is a page: <html><body> <div style=position: relative;> <div style=position: absolute; left: -30px;>LEFT</div>
HTML code: <div id=img-wrapper> <img src=images/1.png title=Picture 1 class=my-img /> <img src=images/2.png title=Picture 2
I have a wrapper div with a height of 600px and a width of
I have a main wrapper div that is set 100% width. Inside that i
Header div on top of the 3 columns Height of all columns must fill
I'd like to create a div that has the same width as the text's

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.