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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:36:06+00:00 2026-05-23T08:36:06+00:00

In .manager-record-header and .manager-record I’ve added property display: block; , I expect it to

  • 0

In .manager-record-header and .manager-record I’ve added property display: block;, I expect it to create a new line for each <div> I type as manager-record-header or manager-record. Somehow it’s not working – Item 01 and Item 02 appear in the same line. Where could be the problem?

this is my web page:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8">
  <style type="text/css">
h1 {
    font: bold 1em 'Trebuchet MS', Arial, Sans-serif;
    color: #333;
  font-size: 1.5em; color: #6297BC;
}
h1 {  } 

body {
    margin: 0;
    padding: 0;
    font: 11px/1.6em  Verdana, Tahoma, Helvetica, sans-serif;
    color: #666666; 
    background: #A9BAC3;
    text-align: center;
}

#manager-body {
    background: #FFF;
    width: 820px;
    margin: 0 auto; 
    text-align: left;
}

.manager-record-header  {
  font-size: 2em;
  padding-left: 15px;
  display: block;
  width: 100%;
}

.manager-record-header-name {
  padding-left: 5px;
  width: 350px;
  float:left;
}

.manager-record-header-quantity {
  width: 100px;
  float:left;
}

.manager-record  {
  padding-left: 15px;
  display: block;
  width: 100%;
}

.manager-record-title {
  float:left;
  padding-left: 5px;
  width: 350px;
}

.manager-record-quantity {
  float: left;
  width: 100px;
}

</style>
 </head>
<body>
<div id="manager-body">
<h1>Item pricing</h1>

    <div class="manager-record-header">
      <span class="manager-record-header-name">Item name</span>
      <span class="manager-record-header-quantity">Quantity</span>
      <span class="manager-record-quantity">Price</span>
    </div>
    <div class="manager-record">
      <span class="manager-record-title">Item 01</span>
      <span class="manager-record-quantity">10</span>
    </div>
    <div class="manager-record">
      <span class="manager-record-title">Item 02</span>
      <span class="manager-record-quantity">3</span>
    </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-23T08:36:07+00:00Added an answer on May 23, 2026 at 8:36 am

    Here is a fiddle of your problem.

    http://jsfiddle.net/jasongennaro/YQQHc/

    This looks like data that would be best presented in a table. I say forget the divs and use a table.

    EDIT

    Something like this

    <table>
        <thead>
            <td>Item name</td>
            <td>Quantity</td>
            <td>Price</td>            
        </thead>
        <tr>
            <td>Item 01</td>
            <td>10</td>
            <td>?</td>
        </tr>
        <tr>
          <td>Item 02</td>
          <td>3</td>
          <td>?</td>
        </tr>        
    </table>
    

    http://jsfiddle.net/jasongennaro/YQQHc/1/

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

Sidebar

Related Questions

The goal is to update a property of staff while choosing a new manager
Possible Duplicate: C/C++ line number Hi, I have a simple error manager class that
There is a record like SWD Lead QA Lead PD Lead Business Manager AAAA
For a simple command-line todo manager (that is to be implemented in C), this
Manager :has_many :interns , :through => :assigns Intern :has_many :managers , :through => :assigns
I have the following LINQ query: Manager mngr = (from tr in DataContext.Manager where
I want to record sound on my Java ME App on K770i. So I
I am working on a WF4 project for manager's to approve requests made to
Let's say I want to make a simple project tracking system. A manager can
I am currently working on a project which has Employee, Manager entities. At the

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.