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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:20:55+00:00 2026-05-29T11:20:55+00:00

I have been given the following: <div class=elf>Label 1</div> <div class=eff>Data 1</div> <div class=elf>Label

  • 0

I have been given the following:

<div class="elf">Label 1</div>
<div class="eff">Data 1</div>

<div class="elf">Label 2</div>
<div class="eff">Data 2</div>

<div class="elf">Label 3</div>
<div class="eff">Data 3</div> 

What I need to do is to have the labels and data line up something like below. Label on top, Data directly below and Label and Data flowing left and continue flowing left after my dialog width is filled:

Label 1      Label 2        Label 3
Data 1       Data 2         Data 3

...

Label 9      Label 10        Label 11
Data 9       Data 10         Data 11

I tried a lot of different combinations of CSS but can’t get anything like this to appear. Here’s my latest CSS which doesn’t work:

.elf { margin: 1em 0 0 0; float: left; }
.eff { margin: 0.5em 0 0 0; display: block;  }

Can someone give me some advice on this? Link to fiddle example

Please note I can’t really add anything more to the HTML. All I can do is to change the CSS for this application.

Thank you

  • 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-29T11:20:56+00:00Added an answer on May 29, 2026 at 11:20 am

    Assuming you cannot change the html in anyway (which you really should if you can), and can only edit css, you can do so with the following (assuming labels have a FIXED width):

    .elf { margin: 0 0 0 0; display: inline-block;}
    .eff { margin-left: -3em; display: inline-block; position: relative; direction: ltr; top: 1em;}
    

    If you can change the html, this would make it a lot easier:

    <div style="float:left">
        <div class="elf">Label 1</div>
        <div class="eff">Data 1</div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been given an array in the following format and need to put
I have been given the following request. Please give 7% of the current contacts
I have been given a WSDL file and I need to consume a web
i have been given class with int variables x and y in private, and
I have been given the following bit of code as an example: Make port
I have been given a header with the following declaration: //The index of 1
I have a requirement. I have been given the following table DownLineid UplineId Name
I have been given the following programming task (edited to obscure mission-specifics): The raw
Good day, I have been given an assignment that gets data off a CSV
I have a div that has been given a tabindex, when the div is

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.