Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Custom table widths


atotheme

Question

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

 

Screenshot 2020-06-02 at 20.41.13.png

Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

  • 0

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;  
}
 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...