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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:12:32+00:00 2026-06-13T15:12:32+00:00

I have a div that I would like to have a border and background-color,

  • 0

I have a div that I would like to have a border and background-color, but the container has collapsed because everything is floated.

This can be see at http://jsfiddle.net/5DNFs/

How do I get the <div class="due-total"> to have the border and background-color?

  • 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-13T15:12:33+00:00Added an answer on June 13, 2026 at 3:12 pm

    Clear your floats : My Fiddle

    Note: Just changed border color so that you can see, you can change it to whatever you want

    HTML

    <div class="invoice-totals">   
        <div class="total">
            <div class="label">TOTAL</div>
            <div class="value">133.00</div>
        </div>
    
        <div class="paid-total">
            <div class="label">Payments</div>
            <div class="value">0.00</div>
             <div style="clear: both;"></div>
        </div>
    
        <div class="due-total">
            <div class="label">AMOUNT DUE</div>
            <div class="value">133.00</div>
             <div style="clear: both;"></div>
        </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div that I would like to reposition each time the page
I have a div that has a one pixel solid white border on the
I would like a div to have a transparent background. I tried to do
I have a div that contains some text and the div has a background
I have a div that will serve as container to other element, I have
I have a simple CSS image map that works like this: HTML: <div style=display:block;
I have a div box that looks like this: .productholder { width: 954px; margin-left:
I'm using jquery mobile, and I have a image that I would like to
I'm trying to create a div that would have a dynamic width depending on
I want to stretch background color (or an image) so it would look like

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.