almost right on mobile except one thing

I've got this page about right, except on wider phones, the credit card section isn't right.

http://dev2.magickitchen.com/checkoutv7.html

See screenshots below.

narrower phones    wider phones
What can I do to fix that? Thanks.
mel200Asked:
Who is Participating?
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.

gheistCommented:
page source would be nice...
0
Ioannis ParaskevopoulosCommented:
You could wrap your "select"s in a div with class "col-sm-4":

Instead of:

<div class="form-group">
	<label for="state" style="padding-left:5px; padding-right:2px;" class="control-label col-sm-4">Expiration Date:</label>
      <select class="select FormInside form-control" style=" float:left; margin-right:10px; height:28px;width:114px;font-size:10px;" size="1" name="exp_date">
        <option value="01">01 Jan</option>
        <option value="02">02 Feb</option>
        <option value="03">03 Mar</option>
        <option value="04">04 Apr</option>
        <option value="05">05 May</option>
        <option value="06">06 Jun</option>
        <option value="07">07 Jul</option>
        <option value="08">08 Aug</option>
        <option value="09">09 Sep</option>
        <option value="10">10 Oct</option>
        <option value="11">11 Nov</option>
        <option value="12">12 Dec</option>
        <option selected="selected" value="">Month</option>
      </select>
	  <select class="select FormInside form-control" style="float:left; height:28px;width:100px;font-size:10px;" size="1" name="exp_date">
	    <option value="01">2015</option>
	    <option value="02">2016</option>
	    <option value="03">2017</option>
	    <option value="04">2018</option>
	    <option value="05">2019</option>
	    <option value="06">2020</option>
	    <option value="07">202l</option>
	    <option value="08">2022</option>
	    <option selected="selected" value="">Year</option>
	  </select>
	</div>
</div>

Open in new window


try this:

<div class="form-group">
	<label for="state" style="padding-left:5px; padding-right:2px;" class="control-label col-sm-4">Expiration Date:</label>
  	<div class="col-sm-4">
      <select class="select FormInside form-control" style=" float:left; margin-right:10px; height:28px;width:114px;font-size:10px;" size="1" name="exp_date">
        <option value="01">01 Jan</option>
        <option value="02">02 Feb</option>
        <option value="03">03 Mar</option>
        <option value="04">04 Apr</option>
        <option value="05">05 May</option>
        <option value="06">06 Jun</option>
        <option value="07">07 Jul</option>
        <option value="08">08 Aug</option>
        <option value="09">09 Sep</option>
        <option value="10">10 Oct</option>
        <option value="11">11 Nov</option>
        <option value="12">12 Dec</option>
        <option selected="selected" value="">Month</option>
      </select>
	</div>
	<div class="col-sm-4">            
	  <select class="select FormInside form-control" style="float:left; height:28px;width:100px;font-size:10px;" size="1" name="exp_date">
	    <option value="01">2015</option>
	    <option value="02">2016</option>
	    <option value="03">2017</option>
	    <option value="04">2018</option>
	    <option value="05">2019</option>
	    <option value="06">2020</option>
	    <option value="07">202l</option>
	    <option value="08">2022</option>
	    <option selected="selected" value="">Year</option>
	  </select>
	</div>
</div>

Open in new window


Giannis
0

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
mel200Author Commented:
You should be able to view source on that url I gave you.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

mel200Author Commented:
That seems to work, thanks!  I'm having someone check it on their phone to be sure. Can I ask another?

The dropdown boxes for state, address type, etc under Purchaser and Receiver are all floated left and look good on desktop. But that pushes them too far left on mobile. Any suggestions? Of course, I'll open a new question if you wish. Thanks.
0
Ioannis ParaskevopoulosCommented:
Hi,

I would again suggest using the same solution. Wrap your select with a div with col-sm-8 class:

<div class="col-sm-8">
        <select class=" select FormInside form-control" style="height:28px;width:100px;font-size:10px; float:left;margin-left:2px;" size="1" name="state">
                  <option value="AK">AK</option>
                  <option value="AL">AL</option>
                  <option value="AR">AR</option>
                  <option value="AZ">AZ</option>
                  <option selected="" value="CA">CA</option>
                  <option value="CO">CO</option>
                  <option value="CT">CT</option>
                  <option value="DC">DC</option>
                  <option value="DE">DE</option>
                  <option value="FL">FL</option>
                  <option value="GA">GA</option>
                  <option value="HI">HI</option>
                  <option value="IA">IA</option>
                  <option value="ID">ID</option>
                  <option value="IL">IL</option>
                  <option value="IN">IN</option>
                  <option value="KS">KS</option>
                  <option value="KY">KY</option>
                  <option value="LA">LA</option>
                  <option value="MA">MA</option>
                  <option value="MD">MD</option>
                  <option value="ME">ME</option>
                  <option value="MI">MI</option>
                  <option value="MN">MN</option>
                  <option value="MO">MO</option>
                  <option value="MS">MS</option>
                  <option value="MT">MT</option>
                  <option value="NC">NC</option>
                  <option value="ND">ND</option>
                  <option value="NE">NE</option>
                  <option value="NH">NH</option>
                  <option value="NJ">NJ</option>
                  <option value="NM">NM</option>
                  <option value="NV">NV</option>
                  <option value="NY">NY</option>
                  <option value="OH">OH</option>
                  <option value="OK">OK</option>
                  <option value="OR">OR</option>
                  <option value="PA">PA</option>
                  <option value="RI">RI</option>
                  <option value="SC">SC</option>
                  <option value="SD">SD</option>
                  <option value="TN">TN</option>
                  <option value="TX">TX</option>
                  <option value="UT">UT</option>
                  <option value="VA">VA</option>
                  <option value="VT">VT</option>
                  <option value="WA">WA</option>
                  <option value="WI">WI</option>
                  <option value="WV">WV</option>
                  <option value="WY">WY</option>
                </select>
</div>

Open in new window


This adds a padding to the left. This could be fixed if you would use normal rows and cols. What you currently have is a .row enclosing two .col-lg-6 each of them enclosing other .col-xxx elements. The correct way would be rows to have cols and cols to have rows and so on.

So you should have something like:

<div class="row">
    <div class="col-lg-6">
        <!--Purchaser-->
        <div class="row">
            <div class="col-lg-4">
            <!--label-->
            </div>
            <div class="col-lg-8">    
            <!--input(s)-->
            </div>
        </div>
    </div>
    <div class="col-lg-6">
        <!--Receiver-->
        <div class="row">
            <div class="col-lg-4">
            <!--label-->
            </div>
            <div class="col-lg-8">    
            <!--input(s)-->
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-lg-6">
        <!--Payment Info-->
        <div class="row">
            <div class="col-lg-4">
            <!--label-->
            </div>
            <div class="col-lg-8">    
            <!--input(s)-->
            </div>
        </div>
    </div>
    <div class="col-lg-6">
        <!--Order Review-->
        <!--....-->
    </div>
</div>

Open in new window


Giannis
0
mel200Author Commented:
Thanks so much!
0
mel200Author Commented:
Excellent advice, thanks!
0
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
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.