Desktop Display Tablet Display Smartphone Display Paeifie Trails Pacifie Trails Kesanl FIGURE 8.32 Resize the browser window to approximate the new tablet and smartphone display. 3. Edit the Home page (index.html). 4. Edit the Yurts page (yurts.html). 5. Edit the Activities page (activities.html). Task 1: Create a folder called ch8pacific to contain your Pacific Trails Resort website files. Copy the files from the Chapter 7 Case Study ch7pacific folder into the ch8pacific folder Task 2: Configure the CSS. Launch a text editor and open the pacific.css external style sheet file a. Configure Support of HTML5. Add the following style rule to configure most older browsers to render HTML5 block display elements as expected. header, main, nav, footer, figure, figcaption, aside, section article display: block; b. Configure Desktop Display. Code the following new styles 1. The mobile id. Set display to none. You'll apply this id when you edit the home page (index.html). 2. The desktop id. Set display to inline. You'll apply this id later when you edit the home page (index.html) c. Configure Tablet Display 1. Code a media query below the existing styles to select for typical tablet device viewport size amedia only screen and (max-width 64em) 2. Configure the following new styles within the media query: a. The body element selector. Set margin to O and the background color to 63% Page 276 of 447 Desktop Display Tablet Display Smartphone Display Paeifie Trails Pacifie Trails Kesanl FIGURE 8.32 Resize the browser window to approximate the new tablet and smartphone display. 3. Edit the Home page (index.html). 4. Edit the Yurts page (yurts.html). 5. Edit the Activities page (activities.html). Task 1: Create a folder called ch8pacific to contain your Pacific Trails Resort website files. Copy the files from the Chapter 7 Case Study ch7pacific folder into the ch8pacific folder Task 2: Configure the CSS. Launch a text editor and open the pacific.css external style sheet file a. Configure Support of HTML5. Add the following style rule to configure most older browsers to render HTML5 block display elements as expected. header, main, nav, footer, figure, figcaption, aside, section article display: block; b. Configure Desktop Display. Code the following new styles 1. The mobile id. Set display to none. You'll apply this id when you edit the home page (index.html). 2. The desktop id. Set display to inline. You'll apply this id later when you edit the home page (index.html) c. Configure Tablet Display 1. Code a media query below the existing styles to select for typical tablet device viewport size amedia only screen and (max-width 64em) 2. Configure the following new styles within the media query: a. The body element selector. Set margin to O and the background color to 63% Page 276 of 447
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance