diff --git a/06_Day_Map_List_Keys/06-my-map-list-keysc/public/index.html b/06_Day_Map_List_Keys/06-my-map-list-keysc/public/index.html index 403bb80..9d3c06d 100644 --- a/06_Day_Map_List_Keys/06-my-map-list-keysc/public/index.html +++ b/06_Day_Map_List_Keys/06-my-map-list-keysc/public/index.html @@ -127,8 +127,14 @@ text-align: center; } + table { + width: 50%; + align-content: center; + margin-left: 15%; + } + tr { - height: 25px; + height: 25px; } .td-name { @@ -143,7 +149,8 @@ .td-value { width: 80px; - text-align: right; + text-align: left; + padding-left: 5%; } .div-line { @@ -151,25 +158,6 @@ background-color: orange; } - .graph-title { - font-size: small; - font-family: Arial; - text-align: center; - } - - .graphs { - display: flex; - justify-content: center; - } - - #stat { - display: flex; - justify-content: center; - } - - .stat-table { - border: thin solid gray; - }
diff --git a/06_Day_Map_List_Keys/06-my-map-list-keysc/src/index.js b/06_Day_Map_List_Keys/06-my-map-list-keysc/src/index.js index 7cb35d8..e1390aa 100644 --- a/06_Day_Map_List_Keys/06-my-map-list-keysc/src/index.js +++ b/06_Day_Map_List_Keys/06-my-map-list-keysc/src/index.js @@ -58,17 +58,21 @@ const Main = ({ numbers }) => ( ) //Population +function numberWithCommas(x) { + return x.toString().replace(/\B(? { const countryList = countries.map((country) =>