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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:48:57+00:00 2026-05-12T19:48:57+00:00

Please have a look at this form that I am trying to design with

  • 0

Please have a look at this form that I am trying to design with not much luck. Let me say that I come from a tables world and am really trying to learn this css stuff. Because I have used tables for so long, I guess I’m expecting the same results. For example, if I write a row of data then start a new row, the bottom row will never move from where it is; that is that unlike css, the contents of the rows stay put.

Now, in this case, I’m expecting the same behavior but what I’m getting are these boxes that are jumping up and every which way. All I am trying to do here is to put 2 input boxes side by side and another below it. What happens is that the last row jumps up. I have to maintain a hight attribute on the box on the right in order to push the next box down.

I am including all of the css and if you view it in your browser, you will hopefully see these boxes as I intend them to be.

#passage .input-right {
  border:1px solid #888;
  height:22px; <----------------------If you change this to something lower, the bottom box jumps up.
  width:99%;
  margin:0;
  padding:0;
}

Here is all of the code.

<style>
#passage {
  width:90%;
  height:350px;
  border:0px solid #000;
  color:black;
  margin:auto;
}
#passage p {
  font-size:11px;
}
#passage span.left {
  float:left;
  width:49%;
  border:0px solid #000;
}
#passage span.right {
  float:right;
  width:49%;
  border:0px solid #000;
}
#passage .select-left {
  border:1px solid #888;
  height:21px;
  width:99%;
  margin:0;
  padding:0;
}
#passage .input-right {
  border:1px solid #888;
  height:22px;
  width:99%;
  margin:0;
  padding:0;
}
#passage div#submit {
  float:left;
  width:100%;
  border:0px solid #000;
  margin-top:20px;
}
</style>

<div id="passage">
  <span class="left">
    Book<br />
    <select class="select-left" name="book">
      <option value="">Select..</option>
    </select>
  </span>

  <span class="right">
    Chapter<br />
    <input type="text" class="input-right" name="chapter-verse" />
  </span>

  <span class="left">
    Translation<br />
    <select class="select-left" name="translation">
      <option value="">Select...</option>
    </select>
  </span>

  <div id="submit">
    <form method="post" action="">
      <div>
        <input type="submit" value="submit" name="search" />
      </div>
    </form>
  </div>
</div>
  • 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-12T19:48:58+00:00Added an answer on May 12, 2026 at 7:48 pm

    What you need to understand is the difference between block and inline elements and that both come from a rather text oriented philosophy. Block elements, like <div> or <p>, will push each other down, i.e. they won’t appear on the same “line” next to each other but behave more like paragraphs. Inline elements, like <span> and <input>, on the other hand behave like text. They line up next to each other on the same line as long as there’s space, then they wrap onto the next line by moving down, then left until they hit an obstacle and start the procedure again.

    Applying a height to an inline element will have a different result than applying it to a block level element. It probably won’t visibly affect the inline element immediately, but might have an effect on other nearby block level elements by pushing them away.

    If you throw float into the mix though, it gets a bit tricky, since floated elements behave a bit like both block and inline elements. Block level elements will largely ignore floated elements, i.e. a floated element inside a block level element won’t contribute to the total height of said block level element. OTOH, inline elements will “interact” with floated elements by floating around them (this behavior was designed for images embedded in text paragraphs). Floated elements will largely behave like inline elements amongst themselves.

    -- div (block) -----------------------------------
    | inline inline inline -- img (floated right) -- |
    | inline inline inline |                       | |
    | inline inline inline |                       | |
    | inline inline inline ------------------------- |
    | inline inline inline inline inline inline      |
    | inline inline inline inline inline             |
    --------------------------------------------------
    
    -- div (block) -----------------------------------
    | inline inline inline -- img (floated right) -- |
    | inline inline inline |                       | |
    -----------------------|                       |--
                           -------------------------
                (the float is not contributing to the div's height)
    

    The easiest way to have two inputs appear next to each other with a third one below is probably like this:

    -- div (block) ---------------------------
    |   input (inline)      input (inline)   |
    ------------------------------------------
    -- div (block) ---------------------------
    |   input (inline)                       |
    ------------------------------------------
    

    You can either code your HTML like this, or manipulate your existing HTML via CSS to behave like this (display: block/display: inline). Welcome to the world of CSS. It’s not really all that hard in principle, you just need to get away from the table thinking. 🙂

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

Sidebar

Related Questions

Please have a look at this demo page that I cooked up a while
Please have a look at this page www.pixeli.ca/issue. I have begun making a page
Please have a look at this validation array in my cakephp app for model
I have a problem with internet explorer 6 and 7, please look this example
Please have a look at http://500px.com/photo/3977429?from=popular . Down in the right corner, theres a
Please have a look at the code below: import string from collections import defaultdict
Please have a look and help me out, I've been looking at my css
Please have a look on the code below .. <div id=click_me>Save</div> <div id=blocks_sortable> <div
Could you please have a look at my code below. #!C:\Perl\bin\perl.exe use strict; use
Please have a look at the following code, which I have run in VB6

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.