"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"install-dependencies": "npm install react-responsive"
},
Notice that it requires horizontal scrolling as the screen becomes narrow.
Within the head of index.html, add:
<meta name="viewport" content="width=device-width, initial-scale=1" />
Hint: use nth-child(odd) in css.
/* Force table to not be like tables anymore */
table, thead, tbody, th, td, tr {
display: block;
}
td {
position: relative;
padding-left: XX%; /* set appropriate percentage here */
}
Make sure to set the value for padding-left to reserve enough space for the labels.
td:nth-of-type(1):before { content: "Name"; }
Add similar labels for Email and Phone.
td:before {
position: absolute;
top: Xpx; /* set amount for top padding */
left: Xpx; /* set amount for left padding */
}
Make sure to set the values for top and left to set the location of the labels.
Also make sure that the labels are smaller and bolded.