Mobile web site development - images and device orientation?
I have developed a mobile site with a 320px wide image on the page. When viewed on the iPhone in portrait orientation, all is. But when you view in landscape mode, it obviously doesn't fit the page. How to fix so that the image will fit all devices, regardless of orientation?
You can change Css codes. Just use the below code in default section of your stylesheet.
img { max-width: 100%; height: auto}
- Which is the top mobile application development company in India? Strong expertise in developing mobile Apps (Symbian, iPhone/iPad, Android, BlackBerry) and (Mobile Website Design and Development)
- Unable to access web server from separate device? I recently setup Apache on an old iMac (2006 running 10.4) I had sitting around collecting dust. Localhost worked great, I uploaded my own html files and they displayed. HOWEVER, when I try and access the web page from my Ubuntu laptop I get a connection error (typing in my ip address). I tried from my laptop that is connected to the same network, and I tried from my iPhone pulling from the LTE network.
- Trying to transfer pictures from an iPhone 6s to a computer. Device files says there's only 70 images but in the phone, there's over 1000? I've tried backing it up, and going through iCloud. Help. Yes, photos are in camera roll. Robert, did that. Same results.
- My iPhone 5s won't rotate, it has ios 8.01, and the portrait orientation is not turned on? I want to play a racing game and I need to be able to tilt the phone in order to steer the car, but that won't work either. Like i said i checked the button that locks the landscape mode, but it is not turned on. I have reset the phone numerous times and it still is not working, any help would be appreciated