Jump to content

User:Johnrdorazio: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 40: Line 40:
In this very moment you seem to be using a <mobileonly>mobile</mobileonly><nomobile>desktop</nomobile> device.
In this very moment you seem to be using a <mobileonly>mobile</mobileonly><nomobile>desktop</nomobile> device.


Here is an html structure that will only show on mobile:
Here is an html structure with block elements that should only show on mobile, using <code>&lt;mobileonly&gt;</code> tag:
<mobileonly>
<div style="background-color:yellow;color:darkblue;font-weight:bold;text-align:center;">I AM A MOBILE DEVICE!</div>
</mobileonly>
 
Here is a similar html structure with block elements that will only show on mobile, using <code>&lt;onlymobile&gt;</code> tag:
<onlymobile>
<onlymobile>
<div style="background-color:yellow;color:darkblue;font-weight:bold;text-align:center;">I AM A MOBILE DEVICE!</div>
<div style="background-color:yellow;color:darkblue;font-weight:bold;text-align:center;">I AM A MOBILE DEVICE!</div>