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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:31:39+00:00 2026-05-10T15:31:39+00:00

I have a list with two <div> s in every <li> and I want

  • 0

I have a list with two <div>s in every <li> and I want to float them one next to the other and I want the <li> to take the whole availabe space. How do I do it?

<html>     <head>         <title></title>         <style type='text/css'>             body {             }             ul {             }             li {             }             .a {             }             .b {             }         </style>     </head>     <body>         <ul>             <li>                 <div class='a'>                     content                 </div>                 <div class='b'>                     content                 </div>             </li>         </ul>     </body> </html> 
  • 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. 2026-05-10T15:31:39+00:00Added an answer on May 10, 2026 at 3:31 pm
     *{ margin: 0; padding: 0;}  li{  width: 100%: display: block; }   li:after{ clear: both; }   div.a{ width: 49%;  float: left; }  div.b{ width: 49%;  float: left; }  

    Should do the trick.

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

Sidebar

Related Questions

I have two DIV's. One has a list and the other has a collections
Ho I have two list view on a frame layout. I want one overlay
I have a list like this: <div> <ul> <li>one</li> <li>two</li> <li>three</li> <li>four</li> </ul> </div>
I have a list where each li element contains two div inside one div
I have a list of h5's: <div id=accordion><h5>One</h5> <p>Lorem ipsum dolor sit amet</p> <h5>Two</h5>
I have two list on my request on jsp. First one is productGroupName, and
Got a quick one, hopefully. I have these two list items included below. The
I have a list item: <li class=sortedli>Call Type</li> I wish to add two div's
In this project we have two list, one for the dealer and the second
I have a drop down list with two values (for now..) with other elements

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.