Avatar of APD Toronto
APD Toronto
Flag for Canada asked on

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>

                    <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>
                    
                    <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>
                        
                    <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>
                    
                    <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>
                    
                    <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'];?>">
                    </div>
                    
                </div>     
                
            </form>

Open in new window


/*CSS for Niagara Trip Manger Details*/
#divGeneral{
    border: 2px solid blue;
}
.divTripIDs{
    display: inline;
    margin-right: 10px;
}
.txtTripIDs{
    width: 5em;  
}

Open in new window

CSSHTML

Avatar of undefined
Last Comment
Robert Granlund

8/22/2022 - Mon
SOLUTION
SSupreme

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Robert Granlund

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23