How can i make width to fit device scren?
-
When i dwared web page to fit mobile phone and desktop.I found it can’t work on tow device by set px or em。I want it work like this .![alt text]
How can i resolve the problem
-
@bosconovitchi In styles for div containing the content try:
.container { width: 100%; max-width: 500px; }
Meta tag would be useful in <head> as well (if you do not use that already):
<meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width">
-
@Ilia Thanks, it works.Happy new year Ilia.