atotheme Posted June 2, 2020 Posted June 2, 2020 Site URL: https://www.jaiminee.com/ I followed this guide on how to insert a table into SS and I'm pretty happy with how it's turned out, but, with no prior knowledge of code, I don't know how to make sure all the columns are equal in size. Currently all the cells are set at 4px padding. Could anyone help? Thanks, Amy
tuanphan Posted June 3, 2020 Posted June 3, 2020 What is access password? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
atotheme Posted July 30, 2020 Author Posted July 30, 2020 Hi @tuanphan I managed to figure it out with this code: //TABLE CM+INCHES// .grid-container{ display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr 1fr; width: 100%; height: 200px; border: 1px solid #000000; } .empty{ background-color: white; grid-column-start: 1fr; border-bottom: 1px solid #000000; border-right: 1px solid #000000; } .size{ font-weight: bold; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #000000; border-right: 1px solid #000000; } .size-4{ display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #000000; } .body-pos{ display: flex; font-weight: bold; justify-content: center; align-items: center; border-bottom: 1px solid #000000; border-right: 1px solid #000000; } .body-pos-2{ display: flex; font-weight: bold; justify-content: center; align-items: center; border-right: 1px solid #000000; } .number{ display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #000000; border-right: 1px solid #000000; } .number-1{ display: flex; justify-content: center; align-items: center; border-right: 1px solid #000000; } .number-2{ display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #000000; } .number-3{ display: flex; justify-content: center; align-items: center; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.