-
Notifications
You must be signed in to change notification settings - Fork 6
Style Guide
linsen edited this page Oct 4, 2012
·
1 revision
Due to the limitations on Mxit regarding display, it is recommended to use a very limited set of html elements and styles.
The following are recommendations regarding html styles:
- Avoid
<p>
,<div>
,<ul>
and<ol>
tags, as their rendering is unpredictable or they are ignored. - Use
<br />
tags for line breaks. These correspond exactly on the phone, so will have predictable results. - Use
<b>
and<i>
tags for bold and italics (rather than<strong>
and<em>
or CSS properties) - When setting either the background or foreground color in CSS (
background-color
andcolor
respectively), be sure to also set the other. If you don't the page might render badly on certain skins. - Avoid using characters like < (
>
) inside links
The following CSS properties can reliably be used in table cells (using the mxit_table_row
helper):
background-color
color
padding