+ 8
How can I make screen bigger?
You can watch my code Solar System. Screen is small and all orbits I can't see all orbits. How can I make screen bigger?
3 ответов
+ 8
Quick but worst solution:
body {
transform:scale(0.5); /* adapt to your screen size by setting less or more */
}
... but by this way, you cannot easily adapt the size to different screen size ( you can, by defining many sizes with media query, or by using JS to calculate the amount of scale to apply ): better way is to rewrite your css and use relative units instead absolute ( 'px' ). By using 'vw' ( 1% of Viewport Width ) for example, with taking account of the actual max size of your solar system ( solar system max-size <=> 100vw ) ;)
+ 9
Yes, but it isn't so easy.
+ 7
Can you make the Solar System smaller (with smaller picture and orbit)?