HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
This case is about helping the Poke Mart merchant to style the shop cart overview. You will practice the skills that you have learned in the chapters about formatting and styling
This case is about helping the Poke Mart merchant to style the shop cart overview. You will practice the skills that you have learned in the chapters about formatting and styling.
Did you solve the first case about the Shop Cart? We will reuse that data. Check it out here.
You do not need the calculations to complete the case. Type the following data:
Merchant: Oh boy! I am glad that you are here to help. This colorless Shop Cart has been declining our sales. Let's give it a lift!
To complete this case you need to:
Start by removing the grids
Like this:
Make space for the heading by creating a new row 1
.
1
1
.
Make space for the header, increase the row height to 40 pixels.
Note: You will see the border size box which indicates the pixels when you start to drag the border.
Merge A1:D1
to create one big cell for the header.
A1:D1
Type Poke Mart in the merged range A1:D1
A1:D1
(click the merged range)The header font is a bit small, huh?
Change the header font to size 20 and make it Bold
A1:D1
(the merged range)20
That's the way! The header looks better now.
For all cells, change the font to Arial and align text for A2:F14
to Center.
A2:F14
A2:F14
to the Center.
It's time to get some colors in there.
A2:D4
(the merged cells)D2:D4
2a75bb
D3:D9
255 203 5
ffcb05
The two last colors used are the same. Same color, HEX and RGB are different.
Note: Coloring the input fields can be helpful for those who will use the spreadsheet. In this case we marked the input fields with the yellow color: ffcb05
.
Next, change text colors
A1:D4
A2:A4
Change the Number formats for the prices to Currency and remove the decimals.
B3:C14
Add borders to make the numbers more readable.
B11
: UnderlineB14
: Double bottom borderE12:F12
: Thick outside bordersB11
B14
E12:F12
Do the final calculation for total and add the final Bold fonts.
B14
=
B11
-
B12
A14:B14
A2:D2
Add test values:
D3(5)
D4(2)
D6(5)
D9(10)
Before styling:
After styling:
function copyFormulas(elementId){ /* Get the text field */ var copyText = document.getElementById(elementId); /* Select the text field */ copyText.select(); copyText.setSelectionRange(0, 99999); /* For mobile devices */ /* Copy the text inside the text field */ navigator.clipboard.writeText(copyText.value) .then(() => { alert('Range copied to clipboard.\nIt can now be pasted into the Excel spreadsheet.') }) .catch((error) => { alert(`Copy failed! ${error}`) }) }