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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:00:17+00:00 2026-05-23T06:00:17+00:00

I started to put together boxes and lists to see how they would all

  • 0

I started to put together boxes and lists to see how they would all layout, and I found something I didn’t expect to find. I noticed that the div that was wrapping the ul list lined up very strangely. If you publish the code below you will see the bullets of the list don’t line up to the right of the black line. Instead the are sitting 20 pixels before the line. Also when I put a border around the div with the list, I thought the border would also wrap around the bullets, but the bullets are outside the border instead. Can someone explain this? So this makes it extremely hard to line lists up with other objects.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
    #wrapper{
        width:700px;
    }
    *{
        padding: 0;
        margin: 0;
    }

    .line {
     background: #B1B1B1;
        float: left;
        height: 340px;
        width: 1px;
    }

    #box{
        float: left;
        background:#000;
        width: 200px;
        height: 100px;
        margin: 0 10px 0 10px;
    }

    #list{
        float: left;
        border:1px #FF0000 solid;
    }


</style>
</head>

<body>
<div id="wrapper">
    <div id="box"></div>
    <div class="line"></div>
    <div id="list">
         <ul>
              <li>enim ad minima veniam, quis nostrum</li>
              <li>exercitation ullamco laboris</li>
              <li>eque porro quisquam est</li>
              <li>labore et dolore magnam aliquam</li>
              <li>aliquid ex ea commodi consequatur</li>
              <li>illum qui dolorem eum fugiat quo voluptas</li>
              <li>modi tempora incidunt ut labore</li>
          </ul>
     </div>
 </div>
</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. Editorial Team
    Editorial Team
    2026-05-23T06:00:17+00:00Added an answer on May 23, 2026 at 6:00 am

    The bullets of a UL list are actually on the LI elemements not the UL. Beacuse the left padding and margin of the LI elements has been removed with the * rule, the bullets sit as they do. You will have to compensate, by adding a left-margin back onto your LI elements.

    See here for an older but useful article: http://meyerweb.com/eric/css/list-indent.html

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

Sidebar

Related Questions

I put together a class yesterday to do some useful task. I started alpha
I'm just getting started with Python/Pandas and put together the following code to plot
I have just started learning and have put together the form below. The confusion
I am trying to put together what I thought would be an easy solution
So I've started tackling Javascript and jQuery, and I've put together an event handler
When I first started with Javascript, I usually just put whatever I needed into
I started using subversion for one of my projects and it would be absolutely
A few months back I put together a simple proof-of-concept piece of software for
I have just started learning the concept of Object oriented programming and have put
I am trying to learn or put together the bits and pieces that 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.