+ 7

How to set height and width of an html page which fit in computer big screen as well as same look in small device like smartphon

Help me! I try to adjust height and width with css but nothing happened. like a example I designed something on my computer and its good to see in google chrome.. but when i paste here in sl then the height and width problem occur.. give some example if possible.. I know here some best coder present who understand my problem and help me... ☺☺ #Thank you

29th Sep 2017, 9:20 PM
Scooby
Scooby - avatar
10 Respuestas
+ 8
You can make the width=100%. Or, specify in pixel not more than 360px for the code playground. Better still, play around with figures until you get the desired fit.
29th Sep 2017, 9:35 PM
Bamgbose Adegbuyi
Bamgbose Adegbuyi - avatar
+ 5
ok..
29th Sep 2017, 9:33 PM
Scooby
Scooby - avatar
+ 5
really helpful tips of "responsive".. @daniel and i remember all of ur words when i create something@bamgbose
29th Sep 2017, 9:42 PM
Scooby
Scooby - avatar
+ 4
I've been using vh and vw with a little more success than %. Might be worth trying. https://www.w3schools.com/cssref/css_units.asp
30th Sep 2017, 3:23 AM
Kirk Schafer
Kirk Schafer - avatar
+ 4
@Kirk Schafer tip is good advice: vw, vh, vmin and vmax are also percentage units, but differs from common % unit by the related size object... % are computed relatively to the container (parent) element, while other are always refering to the viewport size (vw stand for percent of viewport width, vh viewport height, vmin viewport min of both, vmax viewport max of both) ^^
30th Sep 2017, 1:40 PM
visph
visph - avatar
+ 3
You must to use CSS. Try to search by Google writing "responsive"
29th Sep 2017, 9:29 PM
Daniel
Daniel - avatar
+ 3
oo...thank you very much☺☺☺☺
29th Sep 2017, 10:16 PM
Scooby
Scooby - avatar
+ 2
Learn bootstrap. It will save you the stress
29th Sep 2017, 10:11 PM
S Peter Omeiza
S Peter Omeiza - avatar
+ 2
I heard about bootstrap.. give me some best link to learn bootstrap.. @s
29th Sep 2017, 10:13 PM
Scooby
Scooby - avatar
29th Sep 2017, 10:15 PM
S Peter Omeiza
S Peter Omeiza - avatar