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

The Archive Base Latest Questions

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

I want to create a box shape and I am having trouble. I want

  • 0

I want to create a box shape and I am having trouble. I want the box to have a background color, and then different color inside the box.
The box will then have a list of items using ul and li, and each list item will have a background of white, and the list item’s background color is too stretch the entire distance of the inner box. Also, the list items should have a 1 px spacing between each one, so that the background color of the inside box color is visible.

Here is a rough sketch of what I am trying to do:

  • 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:22:44+00:00Added an answer on May 10, 2026 at 3:22 pm

    You can do this pretty cleanly with this css:

    .box {         width: 100px;         border: solid #884400;         border-width: 8px 3px 8px 3px;         background-color: #ccaa77; }  .box ul {         margin: 0px;         padding: 0px;         padding-top: 50px; /* presuming the non-list header space at the top of                               your box is desirable */ }  .box ul li {         margin: 0px 2px 2px 2px; /* reduce to 1px if you find the separation                                     sufficiently visible */         background-color: #ffffff;         list-style-type: none;         padding-left: 2px; } 

    and this html:

    <div class='box'>   <ul>     <li>Lorem</li>     <li>Ipsum</li>    </ul> </div> 

    DEMO

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

Sidebar

Related Questions

I have three problems: I want to create resizable shapes with box bounding... I
I want to create a search box that will combine search URLs and combine
I want to create a text box with a fixed width that will fit
I have a div named box which contains three classes. I want to create
I want to a create dialog box like window before displaying the console window.
I want to create an alert box with 3 radio buttons in it. It
I want to create a search box with the search button directly to the
I want to create a form which has a text entry box where a
I want to create a GUI in which the combo-box allows me to open
I want to create JSF table which has select all button and check box

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.