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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:00:04+00:00 2026-05-11T01:00:04+00:00

I wanna place two child un-ordered lists side by side. They are having Class

  • 0

I wanna place two child un-ordered lists side by side. They are having Class Names L and R

Heres the relevant part of the HTML markup.

<ul class='SearchResult'> <li class='Pagination'> <a id='lnkPageNumber_top_1' class='ACTIVE' onclick='ShowPage(this.id);' style='cursor: pointer;'>1</a> <a id='lnkPageNumber_top_2' onclick='ShowPage(this.id);' style='cursor: pointer;'>2</a> </li> <li> <ul class='L'> <li style='border: medium none ;'> </li> <li class='Pagination'> <a id='lnkImagePageNumber_1' class='ACTIVE' onclick='ShowImage(this.id);' style='cursor: pointer;'>1</a> <a id='lnkImagePageNumber_2' onclick='ShowImage(this.id);' style='cursor: pointer;'>2</a> <a id='lnkImagePageNumber_3' onclick='ShowImage(this.id);' style='cursor: pointer;'>3</a> <a id='lnkImagePageNumber_4' onclick='ShowImage(this.id);' style='cursor: pointer;'>4</a> </li> </ul> <ul class='R'> <li class='T'>Rose Villa</li> <li> <span> <strong>Price</strong> : Rs. 2,000,000 </span> </li> <li> <strong>Features</strong> : <img height='16' width='16' src='bed.png' alt='Beds:' title='Bedrooms'/> 3 <img height='16' width='16' src='bath.png' alt='Baths:' title='Bathrooms'/> 3 </li> </ul> </li> </ul> 

The styleSheet applied is this

ul.SearchResult { width:100%; list-style:none; } ul.SearchResult li { margin:2px; height:200px; border:solid 1px #B5D335;clear:left; } ul.SearchResult img { padding:0px; margin:0px; width:235px; height:156px; border:none } ul.SearchResult li.Pagination { padding:5px; height:auto; } ul.SearchResult li.Pagination a { color:#669900; font-weight:bold; } ul.SearchResult li.Pagination a:hover { color:#FF9900; } ul.SearchResult li.Pagination a.ACTIVE { color:#FF9900; border:solid 1px #B5D335; padding-left:3px; padding-right:3px; } ul.SearchResult li ul {float:left; list-style:none; } ul.SearchResult li ul.L { width:245px;} /* Set as Television set BG */ ul.SearchResult li ul.R { width:292px;} ul.SearchResult li ul li { padding:3px; border:none; height:auto; border-bottom:dotted 1px #C9C9C9; } ul.SearchResult li ul li.T { text-transform:uppercase; color:#44962A; font-weight:bold } ul.SearchResult li ul li span { display:table-cell; min-width:125px; width:auto; } ul.SearchResult li ul li a { color:#44962A; } ul.SearchResult li ul li a:hover { color:#FF9900; } 

But the side by side alignment is not working at all. What could be wrong? h? P.S: and yeah, I saw floating divs in list items Its DIV mentioned there and ul here. Is ‘clear:left’ applicable for bot?

It may be duplicate post for experts in CSS, but I am not. So please bear with it [:)]

Edit Note:- To explain the stuff in detail heres an image alt text http://www.yetanothercoder.com/img.jpg

  • 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-11T01:00:05+00:00Added an answer on May 11, 2026 at 1:00 am

    Adding a clear:none to your UL’s should sort it, so:

    ul.SearchResult li ul {float:left; clear:none; list-style:none; } 

    floating will position the element, but to let other elements position next to it as oppose to underneath it you need to apply the clear:none 🙂

    hope this helps!

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

Sidebar

Ask A Question

Stats

  • Questions 85k
  • Answers 85k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The point of lazy init is to defer allocating resources… May 11, 2026 at 5:09 pm
  • Editorial Team
    Editorial Team added an answer You are asking pros and cons of two different things… May 11, 2026 at 5:09 pm
  • Editorial Team
    Editorial Team added an answer I think you have some options here, but one more… May 11, 2026 at 5:09 pm

Related Questions

I'm creating a ladder system for some games and I've encountered a problem regarding
I can't figure how get the integral & decimal value from a NSDecimalnumber. For
Question How can I make sure my application is thread-safe? Are their any common
I want to get smarter in AJAX, but not sure which way to go.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.