Ask Question
16 November, 19:06

Create a style rule for the page body that sets the width to 95% of the browser window ranging from 640 pixels up to 960 pixels. Horizontally center the page body within the browser window. Finally, Karen wants to ensure that the height of the page body is always at least as high as the browser window itself. Set the minimum height of the browser window to 100%.

+4
Answers (1)
  1. 16 November, 19:52
    0
    body {

    width: 95%;

    min-width: 640px;

    max-width: 960px;

    margin-left: auto;

    margin-right: auto;

    height: 100%

    }

    Explanation:

    body {

    represents the HTML tag that you want to style using CSS

    There are two major ways to style a text it can either be fixed or fluid.

    Fixed layout: The height and width are not flexible, it is specified by using pixels.

    Fluid: The height and the width are flexible it makes use of percentages and ems.

    width: 95%;

    min-width: 640px;

    max-width: 960px;

    sets the width to 95% of the browser window and sets the pixel range from 640 pixels up to 960 pixels.

    margin-left: auto;

    margin-right: auto;

    these lines of code horizontally center the page body within the browser window by automatically setting the margin alignment.

    height: 100%

    it Set the minimum height of the browser window to 100%, ensuring that the height of the page body is always at least as high as the browser window itself.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Create a style rule for the page body that sets the width to 95% of the browser window ranging from 640 pixels up to 960 pixels. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers