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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:47:22+00:00 2026-06-12T10:47:22+00:00

I am working on a client site that is driven by EE. They have

  • 0

I am working on a client site that is driven by EE.

They have a page of technical documents, each with titles of varying length, as well as brief descriptions, also of varying length. In between the two, their design calls for a spacer with leader dots:

sScreen grab from PDF

For each line item, I have a container and floating DIVs for the title and description:

<div class="cv-lit-lineitem">           
    <div class="cv-lit-title"><h3>Title</h3></div>
    <div class="cv-lit-linespacer"></div>
    <div class="cv-lit-info"><p>Info</p></div>
</div>

The title and info float left and right respectively, and their width is defined by their contents:

.cv-lit-lineitem {
    height: 40px;
    width: 940px;
}

.cv-lit-title {
    height: 16px;
    float: left;
}

.cv-lit-linespacer {
    background-image: url("whitedots.png");
    background-repeat: repeat-x;
    height: 40px;
    display: block;
}

.cv-lit-info {
    height: 16px;
    float: right;
}

I can’t seem to get the spacer div to fill the space inbetween. Setting it to 100% fills the entire container width, and everything else results in a width of 0.

Do I need to employ javascript, or am I missing something obvious?

Thanks for any help,

ty

PS: Here’s a fiddle: http://jsfiddle.net/tylonius/zC8jZ/

  • 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-12T10:47:23+00:00Added an answer on June 12, 2026 at 10:47 am

    You can achieve it with display:table; and display:table-cell;

    Check this demo

    HTML

    <div class="cv-lit-lineitem">             
        <div class="cv-lit-title"><h3>Title</h3></div>
        <div class="cv-lit-linespacer"></div>
        <div class="cv-lit-info"><p>Info</p></div>
    </div>​
    

    CSS

    .cv-lit-lineitem {
        height: 40px;
        width: 940px;
        display:table;
    }
    .cv-lit-lineitem > div {
        display:table-cell;
    }   
    .cv-lit-title {
        height: 16px;
    }
    .cv-lit-linespacer {
        background-image: url("whitedots.png");
        background-repeat: repeat-x;
        width:100%;
        height:40px;
    }    
    .cv-lit-info {
        height: 16px;
    }​
    

    Unfortunately, this won’t work on IE8 and below.


    Another simple workaround is to put the dots in the container’s background, then cover it with title’s and info’s backgrounds. But this works only if you have a single-color page background.

    Demo

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

Sidebar

Related Questions

I am working on a site for a client that has jquery driven tabbed
I am working on a client's site that used to have all .swf files
I have a wordpress site that i've been working on that has some pages
I am working on a codeigniter site, the client has requested that the price
I have a Wordpress site that I am currently working on and have set
I have a codeigniter site ,that working perfectly when it is in http .
I am working on a site that allows visitors to download various documents using
I have a site that I'm working on, and one of the requirements is
I have this site that i am working on that i need to figure
I am working on a site that will have a video on it. 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.