HTML/JS

Items 11 to 20 of 68 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Descending Direction
  1. CTI 110 Website Project Home Page

    CTI 110 Web Programming and Database Foundations HTML and CSS Website Project

    Regular Price: $40.00

    Special Price: $30.00

    CTI 110 Web Programming and Database Foundations HTML and CSS Website Project


    Project Guidelines
    The following are the minimum guidelines for the HTML and CSS Website Project. As such, simply meeting the guidelines does not guarantee you a grade of 100 on the project.You may choose your own topic for your website. Pick a topic that you are already familiar with or that you wish to learn about. You may create a fictional topic, but this actually tends to increase the amount of work necessary to complete the project. Remember, this project is designed to be a website project, not a research project - keep it simple.


    Your site must contain a minimum of four(4)HTML pages and one(1)cascading style sheet.


    All pages in your site should be based off of a template. All styling, formatting, and placement of elements should be controlled by CSS. Complete the template first then make copies and fill in the blanks. Refer to your textbooks and the assignments that you have already completed for ideas. It is ok to reuse your code, just not someone else's.


    Follow the design tips found in your textbook and in any supplemental materials in Moodle.


    The homepage of your site should explain the concept of your site and/or provide some type of introduction.


    All pages in your site must be linked together through a common navigational structure. Your navigation elements must have some type of hover effect similar to those used in your textbook.


    Your site must include atleast one image. Your image should be optimized to reduce file size.


    Your site must include relevant data displayed in a table.


    Your site must include atleast one link to an external site as well as a mailto link. The external link should open in a new window/tab.


    To facilitate uploading your files to Moodle, all files in your site should be saved in a single .zip file.


    Be creative. This is one of the few opportunities in the class where you can "do your own thing."


    Keep a backup copy of your files.


    If you have questions, ask!


    When you are finished with your project, upload the .zip file containing all of the files in your project using the appropriate link in Moodle. You should have a single file to upload, and the file cannot be larger than 20 MB.

    Learn More
  2. New Perspectives on HTML and CSS Edition 6 Tutorial 5 Case Problem 2 The Chamberlain Civic Center.jpg

    New Perspectives on HTML and CSS Edition 6 Tutorial 5 Case Problem 2

    Regular Price: $12.00

    Special Price: $10.00

    New Perspectives on HTML and CSS Edition 6 Tutorial 5 Case Problem 2

    Data Files needed for this Case Problem: bottom.jpg, bottomleft.jpg, bottomright.jpg, caltxt.css, css.css, ccc.jpg, febtxt.htm, left.jpg, modernizr-1.5.js, right.jpg, tab.jpg, tabred.jpg, top.jpg, topleft.jpg, and topright.jpg

    The Chamberlain Civic Center  Lewis Kern is an events manager at the Chamberlain Civic Center in Chamberlain, South Dakota. The center is in the process of updating its Website, and Lewis has asked you to work on the pages detailing events in the upcoming year. He's asked you to create a calendar page for the month of February. Lewis wants the page design to catch the reader’s eye and so he suggests that you create a Web table with a background showing a spiral binding. The spiral binding graphic must be flexible to accommodate calendars of different sizes, so you’ll build the borders for this image by nesting the February calendar table within eight div elements. The February calendar must list the following events:

    - Every Sunday, the Carson Quartet plays at 1:00 pm ($8)
    - February 1, 8:00 pm: Taiwan Acrobats ($16/$24/$$36)
    - February 5, 8:00 pm: Joey Gallway ($16/$24/$36)
    - February 7-8, 7:00 pm: West Side Story ($24/$36/$64)
    - February 10, 8:00 pm: Jazz Masters ($18/$24/$32)
    - February 13, 8:00 pm: Harlem Choir ($18/$24/$32)
    - February 14, 8:00 pm: Chamberlain Symphony ($18/$24/$32)
    - February 15, 8:00 pm: Edwin Drood ($24/$36/$44)
    - February 19, 7:00 pm: The Yearling ($8/$14/$18)
    - February 21, 8:00 pm: An Ellington Tribute ($24/$32/$48)
    - February 22, 8:00 pm: Othello ($18/$28/$42)
    - February 25, 8:00 pm: Madtown Jugglers ($12/$16/$20)
    - February 28, 8:00 pm: Ralph Williams ($32/$48/$64)
    - March 1, 8:00 pm: Othello ($18/$28/$42)

    Lewis wants the weekend events (Friday and Saturday night) to be displayed with a light red background. A preview of the page you'll create is shown at the end of this write-up.

    Complete the following:
    1. In your text editor, open the caltxt.css and febtxt.htm files from the tutoril.05\case2 folder. Enter your name and the date in the comment section of each file. Save the files as calendar.css and feb.htm, respectively.

    2. Go to the feb.htm file in your text editor. Create links to the calendar.css and ccc.css style sheets.

    3. Scroll down to the events section element. Within the element, insert a table with the class name calendar. Add the table caption Events in February at the CCC to the calendar.

    4. Create a column group for the calendar consisting of two col elements. The first col element should belong to the weekdays class and span five columns. The second col element should belong to the weekends class and span two columns.

    5. Create a table header row group consisting of one row of table headings displaying the three-letter abbreviations for the days of the week, starting with Sun and ending with Sat.

    6. Create a table body row group containing the days in the month of February. The row group should contain five rows and seven columns of the table data cells. There are no spanning
    cells in any of the rows or columns.

    7. Each table data cell should have the following content:
    - The day of the month should be marked as an h3 heading (refer to Figure 5-55 for the starting and ending days in the calendar).
    - On the days when there is a CCC event, enter the event information as a definition list with the name of the event marked as a dt element, and the time and price of the event each marked with a dd element.

    8. Save your changes to the file and then go to the calendar.css file in your text editor. Create a style rule for the calendar table to: a) create separate borders for the different parts of the table with a 5 pixel space between the borders; b) set the font size to 8 pixels; c) set the top margin to 20 pixels, the bottom margin to 5 pixels, and the left and right margins to auto; d) set the padding space to 40 pixels; and e) set the width to 650 pixels.

    9. In the style rule you created in the previous step, add a style rule that specifies multiple background images for the calendar table in the following order:
    - the topleft.jpg image in the top-left corner of the table with no tiling
    - the topright.jpg image in the top-right corner with no tiling
    - the bottomleft.jpg image in the bottom-left corner with no tiling
    - the bottomright.jpg image in the bottom-right corner with no tiling
    - the top.jpg image in the top-left corner, tiled only in the horizontal direction
    - the left.jpg image in the top-left corner, tiled only in the vertical direction
    - the right.jpg image in the top-right corner, tiled only in the vertical direction
    - the bottom.jpg image in the bottom-left corner, tiled only in the horizontal direction.

    10. Create a style rule to center the table caption along the top of the calendar table and do the following: a) set the bottom padding to 10 pixels; b) set the font size to 16 pixels; c) set the kerning to 3 pixels; and d) set the width to 650 pixels.

    11. Set the width of the table columns to 14% of the width of the table. For columns belonging to the weekends class, change the background color to the value (255, 232, 232).

    12. For table heading cells in the table header row group, set the background color to red, the font color to white, and the letter spacing to 5 pixels.

    13. Set the height of the table row within the table header row group of the calendar table to 5%.  Set the height of the table rows within the table body row group to 19% each.

    14. Add a 1-pixel solid gray border to every table data cell within the calendar table. Set the vertical alignment of the cell content to the top of the cell.

    15. Set the font size of h3 headings within the data table cells of the calendar table to 8 pixels.

    16. The paragraphs in the summary section are enclosed within a div element. Create a style rule for this div element to: a) display the contents in a columnar layout with the column width set to 300 pixels; b) set the column gap to 20 pixels and; c) add a 1-pixel solid black divider rule between columns.

    17. Save your changes to the file and then open feb.htm in your Web browser. Verify that the layout and design of page resemble that shown in Figure 5-55. (Note: If you are running Internet Explorer or Opera, you might not see multiple columns in the description of the upcomming Feburary events.)

    18. Submit your completed files to your instructor, in either printed or electronic form, as requested.

    Learn More
  3. CIS 273 Week 8 Assignment Single Page Website

    CIS 273 Week 8 Assignment Single Page Website

    Regular Price: $15.00

    Special Price: $12.00

    CIS 273 Week 8 Assignment Single Page Website


    Deliverables: One (1) Web page and one (1) Cascading Style Sheet (.css), including the image file.


    Imagine that you have just started your own freelancing business. You have been hired to create a Web page for a company of your choice that announces the item of the week, month, or year. (e.g., Car of the Year, Pet of the Month, Sandwich of the Week, etc.)


    1. Create a Cascading Style Sheet (.css) that applies a minimum of background color and font.
    2. Create one (1) Web page and a heading tag that overrides the Cascading Style Sheet (.css) font settings and makes the font of the heading different from the rest of the page.
    3. The page must also include:
    a. An image depicting the item of the week, month, or year.
    b. At least three (3) hyperlinks to Websites of associated interest to the item and a brief description of what they are about.
    Example: Click here to visit Strayer University
    This link will take you to the University’s main page where you can find further information.
    4. At the bottom of the page, create a link that would allow the user to email you with questions using the mailto: tag and your email address.
    Note: When the email opens the subject line should automatically say, "More Information Please".
    5. Create a footer displaying the Copyright symbol (using the character entity reference), the year, and your name.
    Example: © 2012 Mary Smith
    6. Include a piece of JavaScript in the page.


    The specific course learning outcomes associated with this assignment are:
    Describe the structure of the World Wide Web as interconnected hypertext documents.
    Create and validate HTML documents.
    Create presentations using Cascading Style Sheets and DHTML.
    Summarize Web standards in terms of specifications, guidelines, software, and tools.
    Write clearly and concisely about Web design and development using proper writing mechanics and technical style conventions.

    Learn More
  4. CIS 273 Lab Assignment 9 JavaScript

    CIS 273 Lab Assignment 9 JavaScript

    Regular Price: $15.00

    Special Price: $12.00

    CIS 273 Lab Assignment 9 JavaScript


    Deliverable: Two (2) Web pages and one (1) Cascading Style Sheet (.css)


    Follow the directions below to complete Lab Assignment 9:
    1. Create two (2) Web pages describing what is displayed and how.
    2. Create one (1) Cascading Style Sheet (.css) file with background color, font type, and font size, and assign it to both Web pages.
    3. On one Web page, add JavaScript that creates an effect on the whole page. Note: If you use the Internet for JavaScript samples, please use free or open source samples only.
    4. On the other Web page, add JavaScript that does something to the cursor. Note: If you use the Internet for JavaScript samples, please use free or open source samples only.

    Learn More
  5. CIS 273 Lab Assignment 7 Form Page

    CIS 273 Lab Assignment 7 Form Page

    $12.00

    CIS 273 Lab Assignment 7 Form Page


    Deliverables: One (1) Web page and one (1) Cascading Style Sheet (.css)


    Follow the directions below to complete Lab Assignment 7:
    Note: The CGI bin script does not work for us because we do not have a server to run it on.
    Therefore, we will use the code listed here instead of the .js files.


    In order to have the Submit and Cancel buttons clear the fields, put this line in your code:
    After your <head> tag:
    <meta charset="utf-8" />
    And this line after your <body> tag:
    <form id='sampleform' method='post' action='' >
    The above code will help the fields clear without taking you away from the page.


    1. Re-create the Web page with a form, and create a heading that states your name and the purpose of the page. Example: “Mary Smith’s Sample Form Page” states the purpose of the page.
    2. Create an entry field for:
    a. “Name”.
    b. “Street Address”.
    c. “City”.
    d. “State (abbr.)”.
    3. Create the formstxt.css sheet and apply it to the page.
    4. Enter your city and state as the default values for the fields.
    5. Use local tags on the page to override the .ccs and set the size of the font for “Student Information” to 6 pt.
    6. Create the “Submit” and “Cancel” buttons.
    7. Validate that the buttons clear the name and street address when selected.

    Learn More
  6. CIS 273 Lab Assignment 5 Navigation Bars and Repeated Images

    CIS 273 Lab Assignment 5 Navigation Bars and Repeated Images

    Regular Price: $12.00

    Special Price: $10.00

    CIS 273 Lab Assignment 5 Navigation Bars and Repeated Images


    Deliverable: Four (4) Web pages (the home page and three image pages) and four (4) Cascading Style Sheets (.css) (one for each page).


    Follow the directions below to complete Lab Assignment 5:
    1. Create a home page with navigation bar to the three (3) pages with images listed below and a Cascading Style Sheet (.css) for bisque color and Arial text.
    2. Create a "single image" page with a Cascading Style Sheet (.css) for background image, bisque color, and Arial text.
    3. Create a "top line image" page with Cascading Style Sheet (.css) for background image, bisque color, and Arial text.
    4. Create a "left side image" page with a Cascading Style Sheet (.css) for background image, bisque color, and centered Arial text.

    Learn More
  7. New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 8 Case 1 dessertWeb

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 8 Case 1 dessertWeb

    Regular Price: $15.00

    Special Price: $12.00

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 8 Case 1 dessertWeb


    dessertWeb Amy Wu has asked for your help in redesigning her Web site, dessertWeb, taking advantage of some of the new CSS3 styles. The dessertWeb Web site is a cooking site for people who want to share dessert recipes and learn about cooking in general. In addition to redesigning the site’s appearance, she wants you to create a print style sheet so that users can easily print out recipes and ingredient lists without having to print the headers, footers, and navigation lists that appear on each Web page. Figure 8-64 shows a preview of the screen version of the page.


    Complete the following:
    1. In your text editor, open the recipetxt.htm and dweffectstxt.css files from the tutorial.08\case1 folder included with your Data Files. Enter your name and the date in the comment section of each file. Save the files as recipe.htm and dweffects.css, respectively.
    2. Go to the dweffects.css file in your text editor. Create a style rule for the body element to add two box shadows. One shadow should be placed on the right edge of the page body with the color value (211, 211, 211) and an opacity of 0.5. Set the horizontal offset to 10 pixels, the vertical offset to 0 pixels, and the blur to 15 pixels. Create the same drop shadow on the left edge of the page body as well.
    3. Apply the following style rules to each list item in the horizontal navigation list of the page header: a) set the background color to the value (224, 238, 238); b) add rounded corners 10 pixels in radius; and c) create two inset box shadows: one white shadow located in the upper-left corner offset 3 pixels in the horizontal and vertical direction with a blur of 2 pixels, and the other, a shadow in the lower-right corner with a color value of (147, 207, 207) offset 5 pixels in the horizontal and vertical direction with a blur of 5 pixels.
    4. Add box shadows to the article element with the following properties: a) create an inset box shadow in the lower-right corner with a color value of (171, 171, 171), offset 15 pixels in the horizontal and vertical direction, and with a blur of 75 pixels; and b) create an external shadow located in the lower-right corner with a color value of (101, 101, 101), offset 5 pixels in the vertical and horizontal direction with a blur of 5 pixels.
    5. Add a horizontal background gradient to the blockquote element with the following properties: a) set the gradient to go from the left to the right starting with the color value (166, 230, 230), having a color stop at the 5% point with a value (231, 231, 231), and ending with the color value (255, 255, 255) 15% of the way across the block quote; b) create the same color gradient using the WebKit gradient() function with a color stop for the middle color occurring at the 33% point; and c) using the Internet Explorer Gradient filter, create a horizontal gradient that starts with the hexadecimal color value DEF4F4 and ends with the value FFFFFF.
    6. Save your changes to the file, and then return to the recipe.htm file in your text editor. Add a link to the dweffects.css style sheet file. Specify that the dwlayout.css and dweffects.css style sheets should be used with screen devices.
    7. Save your changes to the document, and then view the page in your Web browser. Verify that the appearance of the page resembles that shown in Figure 8-64. (Note: If you are using Internet Explorer version 8 or earlier, your page will show only the gradient effect around the block quotes, and the gradient will go from light teal to white.)
    8. Figure 8-65 shows a preview of the printed version of the recipe page, displaying the recipe description and ingredients on the first page and the directions on the second page. In your text editor, open the dwprinttxt.css file from the tutorial.08/case1 folder. Enter your name and the date in the comment section of the file, and then save it as dwprint.css.
    9. Set the page size of the printout to 8.5 3 11 inches in portrait orientation with a margin of 0.5 inch.
    10. Hide the following page elements on the printout: page header, left section, right section, all navigation lists, the aside element, the page footer, the h2 element nested within a heading group, and the last paragraph in the article element.
    11. Set the font size of all h1 headings to 200% with a bottom margin of 0.2 inches. Set the font size of all h2 elements to 150% with a top margin of 0.5 inches.
    12. Set the line height of all list items to 1.5 em.
    13. Set the left margin of all ordered lists to 0.5 inches, displaying a decimal value.
    14. Set a page break to always occur before the last h2 element in the page.
    15. Save your changes to the file, and then return to the recipe.htm file in your text editor. Add a link to the dwprint.css style sheet file, setting the style sheet to be used with a print device.
    16. Save your changes to the document, and then view the printed version of the file or preview the printed version in your Web browser. Verify that the contents and layout resemble that shown in Figure 8-65.
    17. Submit your completed files to your instructor.

    Learn More
  8. New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 10 Case 3 MidWest Student Union

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 10 Case 3 MidWest Student Union

    Regular Price: $15.00

    Special Price: $12.00

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 10 Case 3 MidWest Student Union


    MidWest Student Union Sean Lee manages the Web site for the student union at MidWest University in Salina, Kansas. The student union provides daily activities for the students on campus. As Web site manager, part of Sean's job is to keep the Web site up to date on the latest activities sponsored by the union. At the beginning of each week, she revises a set of seven Web pages detailing the events for each day in the upcoming week.
    Sean would like the Web site to display the current day's schedule in an inline frame within the Web page titled Today at the Union. To do this, her Web page must be able to determine the day of the week and then load the appropriate file into the frame. She would also like the Today at the Union page to display the current day and date. Figure 10-39 shows a preview of the page she wants you to create.


    Sean has created the layout of the page, and she needs you to write the scripts to insert the current date and the calendar of events for the current day. To assist you, she has located two functions:
    • The showDate() function returns a text string containing the current date in the format Weekday, Month Day, Year. The function has no parameter values.
    • The weekDay() function returns a text string containing the name of the current weekday, from Sunday through Saturday. This function also has no parameter values.
    The two functions are stored in an external JavaScript file named functions.js. The daily schedules have been stored in files named sunday.htm through saturday.htm.


    Complete the following:
    1. Use your text editor to open the todaytxt.htm file from the tutorial.10\case3 folder included with your Data Files. Enter your name and the date in the comment section of the file and save it as today.htm.
    2. In the head section just above the closing </head> tag, insert a script element accessing the functions.js file.
    3. Scroll down the file and locate the div element with the id dateBox. Within this element insert a script element. The script should run the following two commands:
    a. Write the following HTML code to the Web page:
    Today is<br/>
    b. Write the text string returned by the showDate() function to the Web document.
    4. Scroll down the file and locate the h1 heading with the text Today at the Union. Within the empty paragraph that follows this heading, insert another script element. Within the script element, do the following:
    a. Insert the following multiline comment:
    Display the daily schedule in an inline frame.
    Daily schedules are stored in the files sunday.
    htm through saturday.htm.
    b. Insert a command to write the HTML code
    <iframe src='weekday.htm'></iframe>
    to the Web page, where weekday is the text string returned by the weekDay() function.
    5. Save your changes to the document.
    6. Open today.htm in your Web browser. Verify that it shows the current date and that the daily schedule matches the current weekday.
    7. If you have the ability to change your computer's date and time, change the date to different days of the week and reload (not simply refresh) the Web page. Verify that the date and the daily schedule change to match the new date you selected. Debug your code as necessary.
    8. Submit your completed files to your instructor.

    Learn More
  9. New Perspectives HTML5 and CSS3 7th Edition Tutorial 5 Case 3 Cauli-Wood Gallery CSS style

    New Perspectives HTML5 and CSS3 7th Edition Tutorial 5 Case 3 Cauli-Wood Gallery

    Regular Price: $20.00

    Special Price: $15.00

    New Perspectives HTML5 and CSS3 7th Edition Tutorial 5 Case 3 Cauli-Wood Gallery


    Cauli-Wood Gallery Sofia Fonte is the manager of the Cauli-Wood Gallery, an art gallery and coffee shop located in Sedona, Arizona. She has approached you for help in redesigning the gallery's website to include support for mobile devices and tablets. Your first project will be to redesign the site's home page following the principles of responsive design. A preview of the mobile and desktop versions of the website's home page is shown in Figure 5-61.


    Sofia has already written much of the HTML code and some of the styles to be used in this project. Your job will be to finish the redesign and present her with the final version of the page.


    Complete the following:
    1. Using your editor, open the cw_home_txt.html and cw_styles_txt.css files from the html05 case3 folder. Enter your name and the date in the comment section of each file, and save them as cw_home.html and cw_styles.css respectively.


    2. Go to the cw_home.html file in your editor. Within the document head, insert a meta element that sets the browser viewport for use with mobile devices. Also, create links to cw_reset.css and cw_styles.css style sheets. Take some time to study the contents and structure of the document and then close the file saving your changes.


    3. Return to the cw_styles.css file in your editor. At the top of the file, use the @import rule to import the contents of the cw_designs.css file, which contains several style rules that format the appearance of different page elements.


    Explore 4. At the bottom of the home page is a navigation list with the id bottom containing several ul elements. Sofia wants these ul elements laid out side-by-side. Create a style rule for the bottom navigation list displaying it as a flexbox row with no wrapping. Set the justify-content property so that the flex items are centered along the main axis. Be sure to include the WebKit browser extension in all of your flex styles.


    5. Define flex values for ul elements within the bottom navigation list so that the width of those elements never exceeds 150 pixels but can shrink below that value.


    6. Sofia wants more highly contrasting colors when the page is displayed in a mobile device. Create a media query for mobile screen devices with maximum widths of 480 pixels. Within that media query, insert a style rule that sets the font color of all body text to rgb(211,211,211) and sets the body background color to rgb(51, 51, 51).


    7. Sofia also wants to reduce the clutter in the mobile version of the home page. Hide the following elements for mobile users: the aside element, any img element within the article element, and the spotlight section element.


    8. At the top of the web page is a navigation list with the ID top. For mobile devices, display the ul element within this navigation list as a flexbox row with wrapping. For each list item within this ul element, set the font size to 2.2em. Size the list items by setting their flex values to 1 for the growth and shrink rates and 130 pixels for the basis value.


    9. Under the mobile layout, the six list items in the top navigation list should appear as square blocks with different background images. Using the selector nav#top ul li:nth-of-type( 1 ) for the first list item, create a style rule that changes the background to the background image cw_image01.png. Center the background image with no tiling and size it so that the entire image is contained within the background.


    10. Repeat the previous step for the next five list items using the same general format. Use the cw_image02.png file for background of the second list item, the cw_image03.png file for the third list item background, and so forth.


    Explore 11. Sofia has placed hypertext links for the gallery's phone number and e-mail address in a paragraph with the id links. For mobile users, she wants these two hypertext links spaced evenly within the paragraph that is displayed below the top navigation list. To format these links, create a style rule that displays the links paragraph as a flexbox row with no wrapping, then add a style that sets the value of the justify-content property of the paragraph to space-around.


    12. She wants the telephone and e-mail links to be prominently displayed on mobile devices. For each a element within the links paragraph, apply the following style rule that: a) displays the link text in white on the background color rgb(220, 27, 27), b) sets the border radius around each hypertext to 20 pixels with 10 pixels of padding, and c) removes any underlining from the hypertext links.


    13. Next, you'll define the layout for tablet and desktop devices. Create a media query for screen devices whose width is 481 pixels or greater. Within this media query, display the page body as a flexbox in row orientation with wrapping.


    14. The page body has four children: the header, the footer, the article element, and the aside element. The article and aside elements will share a row with more space given to the article element. Set the growth, shrink, and basis values of the article element to 2, 1, and 400 pixels. Set those same values for the aside element to 1,2, and 200 pixels.


    Explore 15. For tablet and desktop devices, the top navigation list should be displayed as a horizontal row with no wrapping. Enter a style rule to display the top navigation list ul as a flexbox with a background color of rgb(51, 51, 51) and a height of 50 pixels. Use the justify-content and align-items property to center the flex items both horizontally and vertically.


    16. Define the flex size of each list item in the top navigation list to have a maximum width of 80 pixels but to shrink at the same rate as the width if the navigation list is reduced.


    17. Sofia doesn't want the links paragraph displayed for tablet and desktop devices. Complete the media query for tablet and desktop devices by hiding this paragraph.


    18. Save your changes to the style sheet and then open the cw_home.html file in your browser or device emulator. Verify that the layout and contents of the page switch between the mobile version and the tablet/desktop version shown in Figure 5-61 as the screen width is increased and decreased.

    Learn More
  10. Willet Creek Golf Course Landscape Orientation

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 8 Case 2 Willet Creek Golf Course

    Regular Price: $15.00

    Special Price: $12.00

    New Perspectives on HTML, CSS, and Dynamic HTML 5th edition Tutorial 8 Case 2 Willet Creek Golf Course


    Willet Creek Golf Course Willet Creek is a popular golf course resort in central Idaho. You’ve been asked to work on the design of the resort’s Web site by Michael Carpenter, the head of promotion for the resort. He would like you to add some CSS3 visual effects for drop shadows and gradients. Figure 8-66 shows a preview of the screen version of the Web page.


    Complete the following:
    1. In your text editor, open the willettxt.htm and wceffectstxt.css files from the tutorial.08\case2 folder included with your Data Files. Enter your name and the date in the comment section of each file. Save the files as willet.htm and wceffects. css, respectively.


    2. Go to the wceffects.css file and create a shadow effect for the body element. The effect should contain two box shadows, both with a color value of (31, 61, 31) and an opacity of 0.9. Place the first shadow with a horizontal offset of 20 pixels, a vertical offset of 0 pixels, and a blur of 25 pixels. Do the same for the second shadow, except place the shadow with a horizontal offset of 220 pixels.


    3. Set the opacity of the div elements nested within the aside elements to 75%. Use both the CSS3 opacity style and the IE Alpha filter. Add a box shadow that has a color value of (101, 101, 101) with an opacity of 0.7. Set the horizontal and vertical offsets to 5 pixels and the blur to 10 pixels. You do not have to add an IE filter for the box shadow.


    4. Save your changes to the file, and then return to the willet.htm file in your text editor. Add a link to the wceffects.css style sheet file, using the style sheet for screen devices that have a minimum width of 501 pixels. Add the same media query for the wclayout.css style sheet file.


    5. Use an Internet Explorer conditional comment for versions of IE before version 9 to link to the wclayout.css and wceffects.css style sheet files for screen devices.


    6. Save your changes to the document, and then open the willet.htm file in your Web browser. Verify that the appearance and layout of your page resemble those shown in Figure 8-66.


    7. Many golfers playing the courses at Willet Creek like to receive information and advice about each hole. Michael would like you to create a mobile version of the Web page so that golfers with mobile devices can view information about the course during their rounds. Figure 8-67 shows a preview of the Web app you’ll create.


    8. Open the wcmobiletxt.css file from the tutorial.08/case2 folder in your text editor. Enter your name and the date in the comment section of the file, and then save it as wcmobile.css.


    9. Within the style sheet file, add a style rule to hide the navigation list in the header, the inline image in the header, the main section, the aside
    element, and the page footer.


    10. Set the background color to the value (107, 140, 80).


    11. For the header element, create a style rule to: a) change the background color to the value (151, 201, 151) with the image file willet.jpg placed in the left-center of the background with no tiling; b) set the size of the background image to contain; c) set the width to 100%; and d) set the height to 50 pixels.


    12. The navigation list containing links to each of the 18 holes in the Grand Course has the id holes. Create a style rule to set the width of this navigation list to 100%.


    13. For h1 elements within the holes navigation list, create a style rule to: a) set the font size to 25 pixels; b) set the font color to white; c) set the margin to 15 pixels; and d) center the text of the heading.


    14. For list items in the holes navigation list, create a style rule to: a) display the items as blocks; b) add the background image file arrow.png to the right-center of the background with no tiling; c) set the width to 60% and the height to 50 pixels; d) add top and bottom margins of 5 pixels, and add left and right margins of auto; e) add a 1-pixel-wide solid white border to each list item and create rounded borders with a radius of 10 pixels; and f) add inset box shadows to the list items with a color value of (51, 51, 51) and an opacity of 50% (the inset shadows should appear in the lowerleft corner of each list item with a horizontal offset of 10 pixels, a vertical offset of 5 pixels, and a blur of 20 pixels).


    15. For hypertext links within each list item, add a style rule to: a) display the link as blocks; b) set the width to 100% and the line height to 50 pixels; c) set the font color to white; and d) horizontally center the text of the link.


    16. For odd-numbered list items, set the background color to the value (187, 105, 123). (Hint: Use the pseudo-class nth-of-type(odd).) For even-numbered list items, set the background color to the value (150, 80, 100).


    17. The preceding styles will be applied by default to the page in portrait orientation. Create an @media rule for the page in landscape orientation.


    18. Add the following style rule for list items displayed in landscape orientation: a) set the width to 30%; b) float the list items on the left; and c) set the margins to 5 pixels.


    19. Save your changes to the style sheet, and then return to the willet.htm file in your text editor.


    20. Within the willet.htm file, insert a viewport meta element.


    21. Create a link to the wcmobile.css file to be accessed by only screen devices with maximum widths of 500 pixels.


    22. Save your changes to the file, and then open the willet.htm file in your mobile device or with your browser window resized to a width of less than 500 pixels. Verify that for smaller screen widths, the mobile version of the page is displayed. Further verify that the layout of the links to individual holes changes depending on whether the page is in portrait or landscape orientation.


    23. Submit your completed files to your instructor.

    Learn More

Items 11 to 20 of 68 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Descending Direction