HTML for SmartPhone

Can someone help me get this content to neatly fill a mobile device? It's shifted a bit to the right and not quite size correctly.

http://www.pvplayerspizza.com/mobile

webdorkAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Ray PaseurConnect With a Mentor Commented:
I think I would want to make it pass STRICT instead of Transitional, but that may be beside the point.

The general advice I get when I ask designers about mobile devices is "code in percentages."  Getting rid of the tables might be a good start, then using CSS to style the elements so that they do not take up a specific width.  In other words, wherever you have specific dimensions, remove them (including image tags).  I would be on guard against things like this...

<table border="0" align="center" cellpadding="1" cellspacing="0">
    <tr>
      <td valign="middle" ><div id = "UtilityNav" align="center"><a href="default.asp">Home</a></div></td>
      <td width="123"><div align="center"><a href="tel:5304328040"><img src="images/logo4.png" alt="PV Players Pizza" width="123" height="78" border="0" /></a></div></td>
      <td valign="middle"><div id = "UtilityNav2" align="center"><a href="../default.asp">Full Site</a></div></td>
    </tr>
</table>

It's a lot of work to get good CSS the first time, but the flexibility and results are more than worth the effort.
0
 
Gurvinder Pal SinghCommented:
what exactly is supposed to be shifted to the right?
0
 
webdorkAuthor Commented:
The whole page is about 15 px too far right and needs to be centered. If you zoom out of the page it fits. I would like it to fit without needing to zoom out.
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
Ray PaseurCommented:
Fix this first:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.pvplayerspizza.com%2Fmobile%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

You almost certainly want to start with HTML that will pass STRICT validation.  Then you can use CSS to style it for the smart phone.
0
 
webdorkAuthor Commented:
Thanks Ray,

Done

What next?
0
 
webdorkAuthor Commented:
Ok... good advice.
0
 
Ray PaseurCommented:
Thanks for the points.  We have a local developers group here in Washington, DC that focuses on mobile apps. You might want to look for one in your area.  Great intellectual cross-pollination!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.