Untitled

mail@pastecode.io avatar
unknown
css
2 months ago
1.6 kB
5
Indexable
Never
{
  grid-area: header;
}

.item2 {
  grid-area: attribute;
}

.item3 {
  grid-area: drive;
}

.item4 {
  grid-area: distinction;
}

.item5 {
  grid-area: other;
}

.item6 {
  grid-area: powerspec;
}

.item7 {
  grid-area: power2;
}

.item8 {
  grid-area: footer;
}

.grid-container {
  display: grid;
  grid-template:
    'header header header' 90px
    'attribute drive distinction' 200px
    'attribute drive other' 50px
    'powerspec power2 other' 250px
    'footer footer footer' 160px;
  grid-template-columns: 1fr 1fr 1.5fr;
  grid-gap: 5px;
  background-color: #0e5c9c;
  padding: 5px;
}

.grid-container>div {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
  vertical-align: middle;
  padding: 0px 0;
  font-size: 1em;
}

select {
  width: 4.5em;
  text-align: right;
  vertical-align: middle;
}

div.attributes {
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  grid-template-columns: 2em 9em 2em;
  column-gap: 1em;
}

div.line {
  display: flex;
  justify-content: center;
  margin-bottom: .5em; /* Adjust spacing between lines */
}

.attributes select {
  width: 4.5em; /* Fixed width for select elements */
  margin-left: 1em; /* Adjust space before select */
  margin-right: 1em; /* Adjust space before label */
}

div.attributes input[type="checkbox"] {
  margin-right: 1em; /* Adjust as needed */
}

div.attributes label {
  text-align: center;
  flex: 1; /* Allow label to expand to fill remaining space */
}
Leave a Comment