How I can make a webpage for both pc and mobile? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

How I can make a webpage for both pc and mobile?

I want to make a webpage which is open in desktop and mobile. some days before I have made a webpage in computer this was open in chrome browser but this webpage not open in my android mobile please suggest me...

25th Jan 2017, 6:19 AM
Shubham Sharma
Shubham Sharma - avatar
41 Answers
+ 13
bootstrap grid system is best option.
27th Jan 2017, 2:48 PM
Harish Nandoliya
Harish Nandoliya - avatar
+ 10
If your webpage is open in your Chrome browser and you want to see how it looks on an Android, how can click on the menu (the three little dots in the top right corner), go down to "More Tools," and then click on "Developer Tools." Now your screen will be split into two halves. Along the top toolbar, a little to the right of the center of the screen, will be an icon with a picture of two devices, a phone and a tablet. That icon toggles the "Responsive Mode." Basically, when you click that, the left side of the screen will change to look and act like an Android phone. An alternate way to access this setting is by pressing Ctrl+Shift+I, then click somewhere on the left side of the screen. Now press Ctrl+Shift+M to activate the mobile device emulator. As others have said, to make a webpage look good on both PC and phone, you need to use "Responsive Design." To learn more about that, I'd suggest this article: http://www.creativebloq.com/responsive-web-design/get-started-5132987 If you'd like an automatically responsive site, I'd suggest checking out Bootstrap "http://getbootstrap.com". Here's a brief guide on getting started with Bootrap: http://www.w3schools.com/bootstrap/bootstrap_get_started.asp And most of all, just have fun making a webpage!
26th Jan 2017, 6:19 PM
James Hall
James Hall - avatar
+ 9
u need to learn boostrap & css media queries & u can make a responsive design
27th Jan 2017, 11:45 AM
TA9IO
TA9IO - avatar
+ 8
using bootstrap libraries with html and jquery ...u can make websites that can fit in any resolution
26th Jan 2017, 6:25 PM
Asgar Ahmed
Asgar Ahmed - avatar
+ 5
Use WordPress. it automatically fits your website for any device👍
27th Jan 2017, 2:13 PM
Aman Singh Rathore
Aman Singh Rathore - avatar
+ 4
see my work http://www.what2w.com it's completely responsive website.
25th Jan 2017, 6:28 AM
shashi prakash
shashi prakash - avatar
+ 4
Bootstrap's libraries are very useful and have attributes for your elements that will fit to any device's resolution
26th Jan 2017, 4:43 PM
Daniel F.
Daniel F. - avatar
+ 4
check for responsive web design
28th Jan 2017, 6:56 AM
Mohammad Mehrabi
Mohammad Mehrabi - avatar
+ 3
For that you will need to study responsive design.
25th Jan 2017, 6:27 AM
shashi prakash
shashi prakash - avatar
+ 2
Use bootstrap or flexbox and optimize for lower resolution screens
27th Jan 2017, 2:51 AM
Aleksandar Ilicic
Aleksandar Ilicic - avatar
+ 2
You are referring to what is known as responsive design. For this you can use Bootstrap (CSS Framework) or if you completely code it yourself make use of media queries which allow you to adapt elements layout to screen size / device width.
27th Jan 2017, 4:52 AM
Andre van Rensburg
Andre van Rensburg - avatar
+ 2
use, bootstrap framework
27th Jan 2017, 3:51 PM
Andrés F Bernal
Andrés F Bernal - avatar
+ 1
Put your files on cloud so you can have access with any device or publish your page . If the page is look different on devices is because the screen is different. For this you should study responsive design.
25th Jan 2017, 6:43 AM
Didi Georgel Danaila
Didi Georgel Danaila - avatar
+ 1
for make responsive website use bootstrap framework . responsive site support all device s like pc tablet android phone...
28th Jan 2017, 2:12 AM
Shiva Gupta
Shiva Gupta - avatar
+ 1
easily use the bootstrap framework
28th Jan 2017, 5:08 AM
Jalil Abdollahi
Jalil Abdollahi - avatar
+ 1
if u learn bootstrap and css u can build easily responsive website the bootstrap has many useful method u can use in your website.
28th Jan 2017, 6:57 AM
hamidreza lali
hamidreza lali - avatar
+ 1
use bootstrap.css which will be easy to use or use vh for height vw for width vmax for max width and height vmin for min height and width use less px
28th Jan 2017, 2:56 PM
MR Programmer
MR Programmer - avatar
+ 1
Use bootstrap sample.It's a simple way to design web pages for any devices
29th Jan 2017, 5:24 AM
Nagesh R Prabhu
Nagesh R Prabhu - avatar
+ 1
If You want use Seperate pages for device you have to do it via .htaaccess file and php , if you want show some appearance change for different devices you should do it via css3 and @media codes !
29th Jan 2017, 9:02 AM
Abolfazl Vaysi
Abolfazl Vaysi - avatar
+ 1
use angularjs material design or use responsive theme (which you need to buy or get for free, as per your need).
29th Jan 2017, 10:19 AM
Varshal Davda
Varshal Davda - avatar