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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:49:01+00:00 2026-06-17T12:49:01+00:00

Hi , I want to make an html page like shown in image. Two

  • 0

enter image description here

Hi , I want to make an html page like shown in image. Two div next to each other. Div on right has more height. The text starts below div1, but also has to come below div2.
What html should I write for this?

I displayed images next to each other using float:left; But the div containing text starts below div2 , leaving an empty space below div1 to the start of text.
Div2 height not fixed. Div1 has fixed height.

  • 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-06-17T12:49:03+00:00Added an answer on June 17, 2026 at 12:49 pm

    Here is the fiddle

    <div id='d1'>
      This is left one...
    </div>
    
    <div id='d2'>
      This is right one...
    </div>
    
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ultricies pulvinar venenatis.
    Maecenas a erat sed augue viverra volutpat sit amet sed nulla. Nunc velit metus, vulputate sit amet interdum ut, egestas quis velit. Nunc porta nisl nisi. Duis vitae elit diam. Proin lacinia sodales nulla non aliquet. Duis egestas nunc in nisl pulvinar scelerisque.
    Phasellus dignissim dolor sed massa fermentum sagittis. Phasellus nec neque sed nibh ultricies elementum facilisis in turpis. Pellentesque id arcu orci, non feugiat massa. Nunc dapibus volutpat arcu vitae luctus.
    Phasellus sollicitudin enim tellus. Sed et lectus vitae urna sollicitudin sagittis. Pellentesque volutpat massa id erat vestibulum sed sodales nulla ullamcorper. Nullam convallis commodo massa id consectetur.
    

    And the CSS

    #d2 {
      width: 40%;
      height: 125px;
      border: solid #000000 2px;
      float: right;
    }
    

    Edit

    To rectify the problem pointed out by Sowmya; you need to add following in CSS:

    div {
      margin: 5px;
    }
    
    #d1 {
      border:1px solid black;
      width:100px;
      height:100px;
      float: left;
    }
    

    Updated Fiddle

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

Sidebar

Related Questions

I want to make some design tweaks. Here is the code for html: <div
I have html markup like this <button id=button1 onclick=alert='yup'></button> and I want to make
I want to make my HTML and CSS like above to display a white
I have several divs on a page. Each div has a heading which I
i have to make terms and conditions page in html so i want to
I want to make an HTML form with 2 select boxes. The selected option
So I want to make a HTML news letter to be sent out. I
I am traversing a HTML document using javascript DOM. I want make a list
index.php has this jquery code which loads notifications.inc.php into a div on the page
I got a page where I want the user to like a specific article

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.