How to: |
Responsive web design is an approach to webpage creation where content automatically realigns to fit a variety of different window sizes and screen sizes. This allows the content from one HTML file to automatically adapt to multiple footprints such as a desktop, laptop, tablet, or smartphone.
There are two ways to create responsive pages in App Studio:
This method can also be used to convert an existing HTML file to responsive. For more information, see How to Convert an HTML File to Responsive.
Select a responsive template from the HTML/Document Wizard as follows:
The HTML/Document Wizard opens. If you used option a. above, the HTML/Document Wizard contains a navigation window that you can use to specify the folder where you want to save the new file.
The Templates, Settings, and Themes page opens, containing the Responsive Templates section, as shown in the following image.
For purposes of this procedure, do not select None or Custom.
The HTML canvas opens with the automatically generated responsive layout corresponding to the selected template.
Note: It is a best practice to expand App Studio to full screen when working with a responsive layout. This lets you access the greatest number of widgets without having to scroll.
You can create new responsive content using the HTML canvas in responsive mode, as defined in this procedure.
The HTML/Document Wizard opens.
The Templates, Settings, and Themes page opens, containing the Page Settings section, as shown in the following image.
The HTML canvas opens. In the Properties panel, in the DOCUMENT properties, the Responsive design value is set to Yes.
As an alternative to using the HTML/Document Wizard, you can open a file in the HTML canvas and manually change the Responsive design property value to Yes.
You can add content to the HTML canvas before turning Responsive Design on. However, there are advantages to turning Responsive Design on before adding content. Design time benefits include:
The HTML file is open in the HTML canvas.
The Document properties are displayed.
A message appears asking of you want to group control elements into responsive containers.
Note there are three containers within the fourth, larger container. The containers are red, indicating that they are responsive.
You can add additional containers at a later time:
WebFOCUS | |
Feedback |