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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:41:17+00:00 2026-06-10T00:41:17+00:00

I need to draw something like this using html and css. I am not

  • 0

I need to draw something like this using html and css. I am not able to do so.

          _____________________
          |      |      |     |  
          |______|      |_____|
          |                   |  
          |______        _____|
          |      |       |    |
          |______|_______|____|  

I created a major div, an outer rectangle and then created 4 nested divs, smaller rectangular. For the left side 2 i made them to float left and the other 2 float to right. But it is not something that i want. Can someone please let me know what should be done.

  • 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-10T00:41:19+00:00Added an answer on June 10, 2026 at 12:41 am

    You need to use absolution positioning to achieve this. The absolution position of each inner div would have two of top, left, right, or bottom set to 0.

    Here’s an example:

    <html>
        <head>
            <title>CSS Based layouts</title>
    
            <style type="text/css">
                #rect {
                  width: 300px;
                    height: 300px;
                    position: relative;
                  border: 1px solid black;
                }
    
                #topleft {
                  position: absolute;
                  top: 0;
                    left: 0;
                  border: 1px solid black;
                }
    
                #bottomleft {
                  position: absolute;
                  bottom: 0;
                    left: 0;
                  border: 1px solid black;
                }
    
                #topright {
                  position: absolute;
                  top: 0;
                    right: 0;
                  border: 1px solid black;
                }
    
                #bottomright {
                  position: absolute;
                  bottom: 0;
                    right: 0;
                  border: 1px solid black;
                }
    
            </style>
    
        </head>
        <body>
            <h1>CSS Based layouts</h1>
            <p></p>
    
            <div id="rect">
    
                <div id="topleft">
                    Top and Left
                </div>
                <div id="bottomleft">
                    Bottom and Left
                </div>
                <div id="topright">
                    Top and Right
                </div>
                <div id="bottomright">
                    Bottom and Right
                </div>
    
            </div>
    
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to draw something like the image below using WPF... i need this
I am trying to draw a figure something like this: I need to have
For example, I want to draw something directly to an UIView. I need an
I need to draw vertical and horizontal rectangle / bands (like in Gantt charts)
I need to draw a lot of lines. I'm using UIBezierPath for drawing lines
A need to draw an X in a View using Shapes , but the
I need to draw text onto a window HDC along a circular path using
I need to draw a rectange,circle and line and then animate them(press left ->
I need to draw simple alpha maps in xna which depends on current game
I need to draw a chart to show the evolution of data in real

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.