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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:51:56+00:00 2026-06-17T13:51:56+00:00

I have three span elements wrapped in a container. I want the first span

  • 0

I have three span elements wrapped in a container. I want the first span to be twice as high as the other two and floated left. The other two should be immediate to the left of the first one. But on different lines so that they take up the same height vertically. I have tried a lot of different approaches, but am unable to get this to work. Does anyone have any idea of how I can achieve this?

<div id="wrapper>
  <span id="span1>text1</span>
  <span id="span2>text2</span>
  <span id="span3>text3</span>
</div>

Span1 is red, span 2 is green and span 3 is blue

  • 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-17T13:51:57+00:00Added an answer on June 17, 2026 at 1:51 pm

    Take a look at the example I’ve made for you

    You need all inner spans to float left, than just control sizes:

    div{width:200px;height:200px;border:solid 1px black}
    #s1{float:left;background:red;width:50%;height:100%;}
    #s2{float:left;background:green;width:50%;height:50%;}
    #s3{float:left;background:yellow;width:50%;height:50%;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

suppose I have a simple container which have three element: <div> <span>hello world</span> <input
Have three divs in a container that I want to float over a large
i have three lists with the same number of elements in each other, i
I have a set of checkboxes with span elements as their titles. I want
I have three span elements: <span id=span1 class=class1> span 1 </span> <span id=span2 class=class2>
I have three elements, which are sliding on the screen, i want to get
I have three files: lib.c lib.h => They should be built as a .so
I have three divs, within a content div. Container width 70%. Within that I
I have three tables (individuals, groups & recordlabels) and want use the information between
I have a logo div parted by two span s, at the moment I

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.