alignment issue with DIVS

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Gurus in HTML and CSS, I need your help. I have this HTML which has
<DIV>'s columns and I have no idea why the 2nd column which has a drop
down is not aligning proper with the first column which has a text box.

Here is my HTML,


" ">
<html xmlns=" ">
    <title>:: DIVS ::</title>
    <style type="text/css">
            width: 500px;
            float: left;
            border: blue 1px solid;

            float: left;
            width: 150px;
    <div class="container">
        <div class="columns">
            <input id="Text1" name="Text1" type="text"/>
        <div class="columns">
            <select id="Select1" name="Select1">
                <option>Item 1</option>
                <option>Item 2</option>
        <div class="columns">
            <input id="Text2" name="Text2" type="text" />

Re: alignment issue with DIVS

Chaprasi wrote:
Quoted text here. Click to load it

Seems to be aligning fine for me. Maybe I dont know what you mean. You
could post a link to a screenshot or better describe the problem you
are having? (It also is a common courtsey to post a link to a working
page so that the people that you are asking for help from dont have to
do work to help you.)

Re: alignment issue with DIVS

thanks for the reply josh, I am sorry for not providing a site.

I just found out I had to do some padding-top and it works.

I am new to this tableless and using DIV to create a table effect.

thanks anyways :)

Re: alignment issue with DIVS says...
Quoted text here. Click to load it
ummm, if you need a table, USE a table. Tables are for stuff where a
relationship exists between the columns and rows. (ie, if you can put
meaningful headings in the columns, it's a table.)
Tables are NOT for making your page "look good".

Re: alignment issue with DIVS

Joe wrote:
Quoted text here. Click to load it

That's a good way to explain it to someone struggling to get the
distinction!  I shall have to remember that way of putting it.


Site Timeline