Labels & Textboxes not Side by Sde

Hi Experts,

I have the below HTML and CSS, and as you can see I have labels and textboxes for txtTrip[A] to txtTrip[F]. My goal is to display label textbox label textbox, etc., but it displays first 6 labels then 6 textboxes. What ma I doing wrong?

Thank you
        <!--Content Start-->
            <form name="frmNiagaraDetails" id="frmNiagaraDetails" autocomplete="off" method="post"
                action="index.php?action=save" onSubmit="return checkRequired();">
                <div id="divGeneral" class="hidden">
                    <label for="txtDate">txtDate:</label>
                    <input type="text" id="txtDate" name="txtDate" value="<?php echo $strDate;?>"><br><br>
                    <div class="divTripIDs">
                        <label for="txtTrip[A]">txtTrip[A]</label>
                        <input type="text" id="txtTrip[A]" name="txtTrip[A]" class="txtTripIDs" value="<?php echo $trip_ids['A'];?>">

                    <div class="divTripIDs">
                        <label for="txtTrip[B]">txtTrip[B]</label>
                        <input type="text" id="txtTrip[B]" name="txtTrip[B]" class="txtTripIDs" value="<?php echo $trip_ids['B'];?>">
                    <div class="divTripIDs">
                        <label for="txtTrip[C]">txtTrip[C]</label>
                        <input type="text" id="txtTrip[C]" name="txtTrip[C]" class="txtTripIDs" value="<?php echo $trip_ids['C'];?>">
                    <div class="divTripIDs">
                        <label for="txtTrip[D]">txtTrip[D]</label>
                        <input type="text" id="txtTrip[D]" name="txtTrip[D]" class="txtTripIDs" value="<?php echo $trip_ids['D'];?>">
                    <div class="divTripIDs">
                        <label for="txtTrip[E]">txtTrip[E]</label>
                        <input type="text" id="txtTrip[E]" name="txtTrip[E]" class="txtTripIDs" value="<?php echo $trip_ids['E'];?>">
                    <div class="divTripIDs">
                        <label for="txtTrip[F]">txtTrip[F]</label>
                        <input type="text" id="txtTrip[F]" name="txtTrip[F]" class="txtTripIDs" value="<?php echo $trip_ids['F'];?>">

Open in new window

/*CSS for Niagara Trip Manger Details*/
    border: 2px solid blue;
    display: inline;
    margin-right: 10px;
    width: 5em;  

Open in new window

APD TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You don t have a class for:  "txtDate"
if you want them under each other, use float:left, clear:left

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.