close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Why is the checkout page generated by eCart6 not displaying using the full page width on mobile

Thread began 3/12/2015 11:14 am by Dave Buchholz | Last modified 3/16/2015 12:55 pm by Dave Buchholz | 477 views | 7 replies

Dave BuchholzBeta Tester

These comments are based on using the fd_basic_default.css file and the form is identified by the following comments in the code

<!--
WebAssist CSS Form Builder - Form v1
CC: eCommerce
CP: Checkout Wizard
TC: Basic
TP: Default
-->

For mobile checkout you cannot have large set pixel widths so the following rules were changed:

/* form general definition */
form.Basic_Default {
/*width:760px;*/
width: 100%;
}

form.Basic_Default div.fullColumnGroup {
/*width:728px;*/
width: 100%;
padding-bottom:15px;
padding-top:7px;
display:inline;
float:left;
}

form.Basic_Default div.columnGroup {
/*width:760px;*/
width: 100%;
padding-bottom:15px;
padding-top:7px;
display:inline;
float:left;
}

This worked for me because the form is contained within a div that has it's width set as a percentage of the overall container so my aim is to have the form occupy 100% of that width.

On a mobile device forms should be displayed with the label above the form element not side by side as you do on the desktop so I wrote the following media query to do this:

/* Smartphones Portrait */
@media only screen and (min-width: 0px) and (max-width: 480px) {

form.Basic_Default div.formGroup, form.Basic_Default span.buttonFieldGroup {
width: 100%!important;
}

form.Basic_Default input.formTextfield_Large, form.Basic_Default input.formTextfield_XLarge {
width: 90%!important;
padding:5px!important;
border-radius:5px!important;
}

form.Basic_Default label.sublabel {
width: auto!important;
float: none!important;
text-align: left!important;
}

}

This will give you the basics of a responsive form that you can build on.

As an aside there a couple of rules in the stylesheet with an extra closing curly bracket:
form.Basic_Default input.formButton {}}
form.Basic_Default input.formButton:hover {}}

These should be fixed.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...