HTML - Layout For Mobile Devices - How To?
Hi
I recently used an emulator service to see how a page I made would look on mobile devices. note that it's just a web page - not an app for any of them. Here's the screenshot for four of them: I want it to look like the last one on mobile phones, so that the screen is filled. how do I do that on the iPhone and in Chrome? The wrapper DIV width is 302px. Thanks for your time and help. Shaun Similar TutorialsHi peeps So I finally sorted out my website. Tested it on the main browsers and everything was okay. I uploaded it and then went to show a friend on my Iphone and waddya know, it doesn't display properly. For some reason the background image tiles 4 times. And this goes for Iphone, Ipad, and Ipod. There are parts of the site that use flash so It's not optimised for Iwhatevers anyway, but I'd definately like to sort out this "first impression" problem. The site is an adult site (Don't worry there is nothing more than sexy images to be seen. no genitalia or anything). It's www.xturnmeonx.com Any ideas peeps. Hi everyone. I need some advice. I currently run a website for the local snooker league here, http://www.ldbsa.co.uk, and I have a mobile version of the site, http://mobile.ldbsa.co.uk. Currently these are two separate sites, with a PHP script running on the pages to determine what browser and device is being used, and being re-directed to the mobile site should you be on a mobile device. My main issue with this is that I have to update both websites separately, as they are two compeltely independent websites, both pulling the same data in from a MySQL database though. What I would like to do, is to have the same website for both, with a different stylesheet loading depending on the device. This obviously has its advantages in that I only have to update the site once, but the disadvantages come when coding the site. One other method I though about doing is to turn virtually all areas of the site into database driven, including menu items, headers, references to images etc. This way, all I need to do is the write two different stylesheets for the main structure and look of the both versions. The main difficulty I see happening is coding a structure in html that will work for both mobile nad desktop devices. Is this the best way to go about it? Or would you advise keeping the two sites separate? I need to create an HTML page for mobile devices that displays videos. Ideally, it needs to work with older phone browsers too, so I was hoping someone could help me with the following questions: 1. What doctype should I use (XHTML Basic 1.1?)? 2. What's the best way to embed the video in the HTML? 3. If the video can't be embedded, is it good practice to (also?) provide a link so the user can download the video to show in a separate video player application? 4. What video media type(s) are best supported in mobile devices? NB - I will be using Java to create the HTML, so if there's a need to get any request headers, etc. then I could do that in order to provide the best output according to the device. Thanks in advance, James Hi all, I have desgiend and coded an HTML newsletter to be compatible with mobile devises however when testing this newsletter through the email marketing service the images do not load automatically. My service provided says its something with the coding and has nothing to do with the fact that I'm sending email through their service. Sidenote: when I test the newsletter and send it through my outlook via the "send page by email" in browser ...images do load automatically when I view it on my blackberry. :/ Here's a link to the page http://www.globalaerospace.com/ftp/e...012/index.html Any feedback would be greatly appreciated. I'm not so good with programming., mainly a designer Hi , I am playing around with the code for getting videos to resize in response to what device they are being viewed on . The youtube screen is 50% on desktop but when i minimise the youtube box on other media its making it to small for that devices .. .size-one .fluid-width-video-wrapper iframe, .size-one .fluid-width-video-wrapper object, .size-one .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 50% !important; height: 50% !important; <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="https://raw.github.com/davatron5000/FitVids.js/master/jquery.fitvids.js"></script> <script> // FitVids jQuery(document).ready(function(){ // Target your .container, .wrapper, .post, etc. jQuery("#wrapper").fitVids(); }); </script> <div class="my-size-one"> "DUozxfgsclY" </div> <div id="featured"> <h3>video tests...</h3> <div class="size-one"> <iframe src="http://www.youtube.com/embed/DUozxfgsclY" frameborder="0" width="560" height="315"></iframe> </div> Anyone know why ? Thanks in advance and im sorry if this is in the wrong posting place. If so can you tell me where it needs to go . adam I'd like to write a cross-device mobile application/website. I tried to use this: "<meta name="viewport" content="width=*px" />" in head although I don't understand how it works. It adjusts auto zoom level on mobile browsers. However what will be set to *px? What does it mean if there's "device-width" in place of *px I tried to make a form and I checked it out on WM, Symbian and IOS but each phone visualized other. How can I make this cross-platform? Please help! Balu314 (sry my english is poor) Looking for a hint on how to detect a mobile device and redirect to a mobile webpage. Also what would be the optimal width for a mobile website? Thanks, Dano Can any one help me how to design web for mobile. I design a web by Frontpage, look beautiful in PC but can not read in mobile. Thanks in advance Hello, Why cant i scroll my site on mobile smartphones ? www.muchmarketing.co.il thanks What is the reason that i cannot scroll my site left and right on smartphones ? Hello. I am not sure if this is the correct place for this question. Please direct me if not. I am trying to set a webpage to redirect and display a different page if the first page is accessed from a mobile device (phone). Does anyone know how I can achieve this? I just need to know how to determine what it is viewed on. The redirect part I know already. Thanks so much for all help! Hi everyone, What is the code that i will have to enter to my website so mobile phones will be able to access it? Hi all, I thought you might find this report of interest... It is released by www.handsetdetection.com every month and basically gives an insight into mobile web usage and in particular, which are the preferred handsets for consumers to surf the mobile web, by Country. If you are looking to better understand the growing mobile web sector, and the implications that this has on web marketing, design and development, the data is quite useful. You can check it out here http://bit.ly/RawReports Cheers David Hey guys, If I'm posting in wrong section I apologize I have a small problem what I need help with. I use a free service for redirecting people to my mobile site, but there service is down for last 6 days or something got wrong. Anyway I decided to use .htaccess rewrite to redirect them to mobile site. The problem I have is that I cant really find how to do it efficiently and what I need because I have two different mobile sites. here it goes: My site example.com First mobile site is example.com/index.php?template=3 (this one is mainly for blackberry and all rest mobile devices, and I like this one to load in opera mini also if possible) Second mobile site is example.com/index.php?template=5 (that one is specifically for iPhone and android phones) I am really don't know how to do it please! Thank you. Hi I'm a bit of a newbie to any kind of HTML codes Ive made a Test website so I can try out this piece of software that helps to create mobile web sites using HTML Here's the Website : http://82.45.130.37/atozcouriers/ftp...001/index.html Heres the HTML : http://www.2shared.com/document/XdlY...html?(Password :21) I am using notepad to edit as any web editor messes up the viewing of the website in a Mobile Browser The mobile Browser is Safari on iPad,iPhone or iPod touch My problem only happens on one page , the homepage. It aligns the main body to the right a bit and adds a line I've experimented a bit but as I'm a newbie I'd don't know what to do. Any help would be gratefully appreciated. Thanks keirjohnharry I need to make my site suitable for mobile browsers (small resolution, etc.) and looked at this page which gives tips on how to do it. It seems like a nightmare! I think it would be much simpler just to create a special version of the site and redirect people to it when they go to the main page. Is redirecting considered a bad idea? And if so, why? Hello. Happy to be a new member. Beautiful forum. I'm trying to play an swf unless the OS is unable (eg iphone, ipod, ipad) in which case I'd want a mp4 to play. I thought I had it working with this: Code: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="366" height="275" id="Project1" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="video/Project1.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#d6dbef" /> <embed src="video/Project1.swf" quality="high" bgcolor="#d6dbef" width="366" height="275" name="Project1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> <video width="366" height="275"> <source src="video/Project1.swf" type="video/swf"> <source src="video/Project1.mp4" type="video/mp4"> </video> </embed> <PARAM NAME="autoplay" VALUE="true" > </object> which plays the swf fine on my pcs and the mp4 fine on my Iphone, but the fella I'm doing this for insists it is not working on his ipad which is really the reason I'm adding the mp4s in the first place. Here is the code implemented: http://propertysolutionskc.com/construction.html and here again w/o javascript: http://propertysolutionskc.com/listing017.html Any help would be very much appreciated. Hi All, I was hoping for some help in finding some Beta participants out there who would be interested in trying out our new service. We have just launched in Beta mode. (its free to use). There will also be a free version after the official launch. The first step is to browse your way over to: http://www.handsetdetection.com/ We hope that this will represent one of the first steps in solving the mobile and web crossover issues which website owners and developers face when people view the site from any device other than a normal computer (I-phone / Balckberry / PDA). Once connected to our service, when someone visits your site, a live request is sent to us, and we return a result back to you on a live basis with details of the device, screen size, GEOIP, make, model and many other fields of information. From that point, you can do one of two things: 1. Depending on the result returned, you can then display an appropriate view for the consumer i.e. A website that will fit their device's screen size and UI which is controlled by the way in which they are browsing (i-phones suit touch screen menus, N95's suit joystick controls and so on...) 2. If option 1 is too much of a first leap, after you add the code into your website, you can just login to our online reporting system and view your traffic results based on device make, model, country, city etc... This would be a great first step in understanding whether you are getting traffic to your site from non traditional browsing devices. As I mentioned, we are in Beta stage, so we would value your feedback on this. Also, if you know of anyone else who may be interested in participating in this Beta stage, I would be grateful if you could pass this message on... Regards, David Manjra skype: dmanjra Hi guys I'm thinking of making a mobile friendly version of my karaoke show site. Mainly I'd like to offer a mobile friendly version of my songlist. I was wondering what the main differences are between a mobile site like this: https://www2.my.commbank.com.au/mobile/i/default.aspx And the app version of the above banking site? I don't have a smart phone yet, so can't check myself, but will be getting one soon to aid in the site development. Does anyone know of a good tut on making mobile sites that fit the screen of a mobile? Cheers Shaun Hi there I'm new to this site but think I'll be sticking around for the wealth of information here. So...I recently designed a website for a friend working off a nice little template to save time. Everything looks great and operates exactly how they requested on a desktop browser. However, the images become vertically stretched when viewing on a mobile device pretty severely. I'm confused because it's only the photos, other graphics (also jpegs) do not become distorted. Is it because I used width="x%" and height="x%" in the image tags www.rideums.com is the website if you'd like to take a look at the source. Thanks guys for helping out. |