+ 1
How can I remove the border from grid
If I work with grid on css I have always a border. How can I remove this border. I test it with "border-style: none" but the border still every there. Thanks ever before
8 Réponses
+ 3
Add on top of your css before everything else:
body {
margin: 0;
}
this will work, I tested it.
+ 2
Try: "margin: 0;"
+ 1
thanks James and Donna that was really helpful ;-D
0
The part from my css code where I make the structure:
.body{
display: grid;
width: 100%;
grid-template-rows: 20% 20% 20% 20% 20%;
grid-template-columns: 20% 20% 20% 20% 20%;
border-style: none;
}
.header{
grid-column-start: 1;
grid-column-end: 6;
}
.informationsStructure{
grid-column-start: 1;
grid-column-end: 6;
padding-left: 5%;
padding-right: 5%;
}
.Course{
grid-column-start: 1;
grid-column-end: 6;
padding-left: 5%;
padding-right: 2%;
}