Computer Science, asked by arundhathi26072005, 11 months ago

What are the ways to control size of a view?

Answers

Answered by BushrajavediqbalKhan
1

Explanation:

Set the view port

Pages optimized must include a meta view port tag in the head of the document. A meta view port tag gives the browser instructions on how to control the page's dimensions and scaling.

Use the meta view port tag to control the width and scaling of the browser's view port.

Include width=device-width to match the screen's width in device-independent pixels.

Include initial-scale=1 to establish a 1:1 relationship between CSS pixels and device-independent pixels.

Ensure your page is accessible by not disabling user scaling.

Ensure an accessible viewport

In addition to setting an initial-scale, you can also set the following attributes on the viewport:

• minimum-scale

• maximum-scale

• user-scalable

Size content to the viewport

On both desktop and mobile devices, users are used to scrolling websites vertically but not horizontally; forcing the user to scroll horizontally or to zoom out in order to see the whole page results in a poor user experience.

Do not use large fixed width elements.

Content should not rely on a particular viewport width to render well.

Use CSS media queries to apply different styling for small and large screens.

Use CSS media queries for responsiveness

Media queries are simple filters that can be applied to CSS styles. They make it easy to change styles based on the characteristics of the device rendering the content, including the display type, width, height, orientation, and even resolution.

Use media queries to apply styles based on device characteristics.

Use min-width over min-device-width to ensure the broadest experience

Answered by jitekumar4201
1

They are two ways you can size or resize of view with the help of the control button  

Explanation:

  • Help of mouse  

    just click on the screen and hold the ctrl button and rotate the scroll key  

  • if you want to maximize the screen just scroll forward  
  • if you want to minimize the screen just scroll backward
  • Help of Keyboard

just click on the screen and hold the ctrl button and press plus or subtract button  

  • if you want to maximize the screen just press plus button
  • if you want to minimize the screen just press subtract button
Similar questions