<body>
<div class="toolbar">
<h1 id="pageTitle"></h1>
<a id="backButton" class="button" href="#"></a>
<a class="button" href="#searchForm">Search</a>
</div>
<form method="post" action="/mail/167048/txtnow_s/" id="/167048/txtnow/" title="Send Message" class="page" selected="true">
<h2>Send Text Message</h2>
<fieldset>
<div class="row">
<label>Message:</label>
<input size="15" maxlength="155" format="text" value="" name="d"/>
</div>
<div class="row">
<label>Your 10 digit mobile number:</label>
<input size="15" maxlength="10" style="-wap-input-format: "10N" " format="text" name="c_zip" value="1234564323"/>
</div>
</fieldset>
<input type="submit" accesskey="1" value="Send"/>
</form>
Remi
> --
>
> You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
> To post to this group, send email to iphone...@googlegroups.com.
> To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
>
>
Remi Grumeau
(+33) 663 687 206
http://www.remi-grumeau.com
body > .dialog or body > .panel you will see in iui.css means first child of <body>
After that, you'll find .panel > fieldset , fieldset > .row, .panel > h2, … which means first child also right after body
So, the structur supported by iUI could be reproduce like this
body
+ whatever you want (div, form, p, ul, …) .panel (or .dialog, .toolbar, …)
+ h2
+ fieldset
+ div.row
+ label
+ input
The structur you propose is the following
body
+ whatever you want (div, form, p, ul, …) .panel (or .dialog, .toolbar, …)
+ form
+ h2
+ fieldset
+ div.row
+ label
+ input
which can't work, at least if you don't change 80% of the CSS code or core iUI styles.
But yes, if you do this 80% of code modification, it should work :-)
Remi
Benefits:
- Being present in both desktop and mobile search engines
- Using all built-in functionalities of your mobile frameworks out of the box
- Any HTML / CSS updates on your desktop website will not break a thing for the mobile one
- You will be able to use those classes to create a WAP site, a RSS Feed, create a dynamic sitemap xml/ror, …
- All desktop version is not always appropriate on a mobile one, same on the opposite (accesskey, geolocalisation, …)
And this <lI> or CSS problem is over :)
example:
http://www.beosfrance.com/
http://m.beosfrance.com/
http://www.beosfrance.com/iphone/
Remi
Remi
To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com.
body > ul
Change to: body > div > ul
I also had to add:
body > div > ul {
margin: 0;
padding: 0;
}
On my .panel pages I had added a <form> tag so anything that looked
like:
.panel > fieldset
Had to be changed to:
.panel > form > fieldset
All in all it was only about 1/2 dozen lines to change (in .3 anyway)
> Thought I'd follow up on this issue incase anyone else has this
> problem.
> I thought I had one problem since lists and "panel" pages displayed
> with the same type of error (unwanted padding on the left)
> Remi was right (ofcourse, thank you!)
:) thx a million !
> The hierarchy must be structured
> properly and adding an extra div around the list pages messed that up.
> Just fix iui.css to reflect the change. Any where you see
>
> body > ul
>
> Change to: body > div > ul
>
> I also had to add:
>
> body > div > ul {
> margin: 0;
> padding: 0;
> }
if you do this change in music sample, you'll see the mess this modification could make…
if i were you, i'd rather change
body > ul
{ … }
by
body > ul,
body > div > ul
{ … }
>
> On my .panel pages I had added a <form> tag so anything that looked
> like:
> .panel > fieldset
> Had to be changed to:
> .panel > form > fieldset
that why body > div > ul is a bad move, instead of body > *:not(.toolbar) cause you can add the class="panel" to <ul>, <div> or <form>
> All in all it was only about 1/2 dozen lines to change (in .3 anyway)
trust me: to avoid if possible...
> Oh ya I totally agree, I am a lil confused by your comments on adding
> the .panel class...
> Are you saying that I should have just added "class="panel"" to my
> <form> tag in html?
>
i think so :)
Remi