Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Table Body Create the table body row group containing nine table rows with the first cell in each row containing a heading cell displaying the

Table Body Create the table body row group containing nine table rows with the first cell in each row containing a heading cell displaying the letters A through I. After the initial table heading cell in the first, fourth, and seventh rows of the table body row group, insert three table data cells spanning three rows and three columns each. Altogether, these nine data cells will store the nine 33 boxes that are part of the Sudoku puzzle. In the first row of the table body row, put the three table data cells you entered in the last step in the greenBox, goldBox, and greenBox classes, respectively. In the fourth row, the three data cells belong to the goldBox, greenBox, and goldBox classes. In the seventh row, the three data cells belong to the greenBox, goldBox, and greenBox classes. Table Data Cells Go to each of the nine table data cells you created in the last two steps. Within each data cell, insert a nested table belonging to the subTable class. Within each of these nested tables, insert three rows and three columns of data cells. Enter the digits from the example in the Introduction section in the appropriate table cells. Where there is no digit, leave the data cell empty.

PLEASE HELP WITH CSS CODE THAT I HAVE BELOW:

@charset "utf-8";

/*

New Perspectives on HTML5 and CSS3, 7th Edition

Tutorial 6

Case Problem 2

Sudoku Style Sheet

Author:Xavier Phillips

Date:1/30/2023

Filename: jpf_sudoku.css

*/

/* Table Styles */

/* Styles for table element (ie,

tag) having class of "spuzzle" */

table.spuzzle {

/* set the table borders to collapse */

border-collapse: collapse;

/* set the top and bottom margins to 0 pixels and the left and right margins to auto */

/*Syntax for margin is- */

/* margin: top-And-Bottom left-And-Right */

margin: 0px auto;

/* set the width to 90% */

width: 90%;

}

/* Style rules for every td element (ie,

tag) */

td {

/* Add a border of 5-pixel width and outset style with gray border */

border: 5px outset gray;

/* set the width to 33.3% */

width: 33.3%;

}

/* Style rules for every th element (ie,

tag) */

th {

/* set the font or text color to gray */

color: gray;

/* set the right padding space to 10 pixels */

padding-right: 10px;

/* set the bottom padding space to 10 pixels */

padding-bottom: 10px;

}

/* Inner Table Styles */

/* Styles for table element (ie,

tag) having class of "subTable" */

table.subTable {

/* set the table borders to collapse */

border-collapse: collapse;

/* set the width to 100% */

width: 100%;

}

/* Style rules for every td element (ie,

tag) which is within (or nested inside) the table of subTable class */

/* Use nested (descendant) CSS selector for td element */

/* The descendant selector is used by a single space ( ) character and it combines two selectors such that elements matched by the second selector are selected if they have an ancestor like parent, parent's parent etc element matching the first selector. */

/* For example- style rule-

selector1 selector2 {

/* property declarations;

}

will select every selector2 html element which is nested inside its parent's (ie, selector1) element */

table.subTable td {

/* add an inset box shadow with offset values of 0 px in the horizontal and vertical directions with a blur-radius of 15 px */

box-shadow: inset 0px 0px 15px;

/* add a 1-pixel solid black border */

border: 1px solid black;

/* Show the text in a blue font/text color */

color: blue;

/* set the cell height to 40 px */

height: 40px;

/* center the cell text in the horizontal direction */

text-align: center;

/* center the cell text in the vertical direction */

vertical-align: middle;

}

/* Style rules for every td element (

tag) that is nested within (inside) a td element having class of goldBox */

td.goldBox td {

/* set the background color to rgb(228, 199, 42) */

background-color: rgb(228, 199, 42);

}

/* Style rules for every td element (

tag) that is nested within (inside) a td element having class of greenBox */

td.greenBox td {

/* set the background color to rgb(203, 229, 130). */

background-color: rgb(203, 229, 130);

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building The Data Lakehouse

Authors: Bill Inmon ,Mary Levins ,Ranjeet Srivastava

1st Edition

1634629663, 978-1634629669

More Books

Students also viewed these Databases questions