Styling for Javascript
Mobiscroll ships with components and styling capabilities that you can use to enhance the look and feel of your content.
Use these features on their own or in conjunction with other Mobiscroll components.
Shipping with useful elements, including:
- Basic typography styling
- CSS classes you need for creating easily scannable content
- Page component with approprite margins and paddings
- Classes for rendering different media types
- Icon support
- Multiple theme support
Styling demos available for other frameworks.
Viewing demos & code for
is loading ...
is loading ...
Javascript Styling
Content
Content
Change the theme setting here
Change the language and localization settings here
1. Elements
1.1. Semantics
Elements, attributes, and attribute values in HTML are defined (by this specification) to have certain meanings (semantics). For example, the ol element represents an ordered list, and the lang attribute represents the language of the content.
These definitions allow HTML processors, such as Web browsers or search engines, to present and use documents and applications in a wide variety of contexts that the author might not have considered.
1.2. Elements in the DOM
The nodes representing HTML elements in the DOM must implement, and expose to scripts, the interfaces listed for them in the relevant sections of this specification. This includes HTML elements in XML documents, even when those documents are in another context (e.g. inside an XSLT transform).
The basic interface, from which all the HTML elements' interfaces inherit, and which must be used by elements that have no additional requirements, is the HTMLElement interface.
1.3. Element definitions
Each element in this specification has a definition that includes the following information.
2. The elements of HTML
2.1. The root element
The html element represents the root of an HTML document.
Authors are encouraged to specify a lang attribute on the root html element, giving the document's language. This aids speech synthesis tools to determine what pronunciations to use, translation tools to determine what rules to use, and so forth.
2.2. Document metadata
The head element represents a collection of metadata for the Document.
Styling - Typography
Styling - Content
// Use the settings object to change the theme
mobiscroll.settings = {
lang: ' '
theme: 'ios',
themeVariant: 'light'
};
<div id="demo" class="mbsc-padding" mbsc-page>
<h2>1. Elements</h2>
<h3>1.1. Semantics</h3>
<p>
Elements, attributes, and attribute values in HTML are defined (by this specification) to have certain meanings (semantics). For example, the ol element represents an ordered list, and the lang attribute represents the language of the content.
</p>
<p>
These definitions allow HTML processors, such as Web browsers or search engines, to present and use documents and applications in a wide variety of contexts that the author might not have considered.
</p>
<h3>1.2. Elements in the DOM</h3>
<p>
The nodes representing <a href="#" target="_blank">HTML elements</a> in the DOM must implement, and expose to scripts, the interfaces listed for them in the relevant sections of this specification. This includes <a href="#" target="_blank">HTML elements</a> in
<a href="#" target="_blank">XML documents</a>, even when those documents are in another context (e.g. inside an XSLT transform).
</p>
<p>
The basic interface, from which all the
<a href="#" target="_blank">HTML elements</a>' interfaces inherit, and which must be used by elements that have no additional requirements, is the <a href="#" target="_blank">HTMLElement</a> interface.
</p>
<h3>1.3. Element definitions</h3>
<p>
Each element in this specification has a definition that includes the following information.
</p>
<h2>2. The elements of HTML</h2>
<h3>2.1. The root element</h3>
<p>
The <a href="#" target="_blank">html</a> element <a href="#" target="_blank">represents</a> the root of an HTML document.
</p>
<p>
Authors are encouraged to specify a lang attribute on the root html element, giving the document's language. This aids speech synthesis tools to determine what pronunciations to use, translation tools to determine what rules to use, and so forth.
</p>
<h3>2.2. Document metadata</h3>
<p>
The head element represents a collection of metadata for the Document.
</p>
</div>
Styling - Media
Styling - Icons
Styling - Single column
Styling - Content grid
Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.
What framework are you using?
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Ionic project
$ mobiscroll config ionic --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Create an Ionic 3 & Mobiscroll starter with the CLI:
Run this command for Ionic 4 & Mobiscroll starter:
Step 3.Copy the code into your app.
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Ionic project
$ mobiscroll config ionic --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Run this command for Ionic 5 & React Mobiscroll starter:
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Angular project
$ mobiscroll config angular --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.
Step 4.Run ng serve in the root folder of your app 🎉
$ ng serve
And voilà, everything should be running smoothly.
Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.
$ npm install
$ ionic serve
Let us know if we can help and enjoy!
Everything is set up so that you can dig in right away and start exploring.
Please extract the zip file and simply open the demos in your favorite browser.
For instructions on how to install Mobiscroll in your project
follow this guide.
Let us know if we can help and enjoy! 👍
Please extract the zip file and run the project like any Angular CLI app.
Make sure to have the Angular CLI installed.
For installation and usage, extract the zip file and open a terminal window and follow these steps.
$ npm install
$ ng serve --open
Let us know if we can help and enjoy! 👍
Everything is set up so that you can dig in right away and start exploring.
We have set up a trial so that you can try the demos locally.
The easiest way to get started is to follow the installation steps and by
grabbing the code directly from the demo page. Let us know if we can help and enjoy! 👍
You'll find a fully functional Kitchen-sink Ionic app in the zip file.
The demos are using Babel's in-browser ES6 and JSX transformer.
Please extract the zip file and open the demos in your browser.
For instructions on how to install Mobiscroll in your project
follow this guide.
Let us know if we can help and enjoy!
We have to set you up with a trial for this to run 👍
Enter a new password and hit the button below to change it!
You are setting a password for the account
Your password has been changed!