Home > Back-end >  CSS spacing issue with flex display
CSS spacing issue with flex display

Time:11-14

I am new to CSS and not quite sure how to do spacing. Currently I have tried to center 5 wheels on the page like this:

enter image description here

The CSS is

body{
    padding: 0px;
    margin: 0px;
}
#wheels{
    display: flex;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: stretch;
    width: 100%
}    
#wheel1, #wheel2, #wheel3, #wheel4, #wheel5, canvas{
    flex-grow: 1;
    margin: 0;
    padding: 0;
} 

canvas{
width: 100%;
}   

I already have margin 0 and padding 0. I need to reduce the spacing between the wheels so that they will display bigger. Not sure about how to do this. Any help is appreciated.

EDITED:

The program is based on javascript. It is related to my enter image description here

  •  Tags:  
  • css
  • Related