Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.2 kB
2
Indexable
Never
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.carousel-container {
  max-width: 400px;
  margin: auto;
  overflow: hidden;
  position: relative;
}

.carousel {
  display: flex;
  width: 100%;
}

.slide {
  flex-shrink: 0;
  flex-basis: 100%;
  min-height: 200px;  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: white;
}

.slide:nth-of-type(odd) {
  background-color: #a7a376; /* Apply this color to odd-numbered slides */
  color:white;
}

.slide:nth-of-type(even) {
  background-color: #f8f2e8; /* Apply this color to even-numbered slides */
  color:#485929;
}

.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #a7a376;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
}

.next-btn i {
  font-size: 24px;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.slide-content {
  padding: 40px; /* Add padding to create margin around the text */
  text-align: center;
}

.red{
            color: #485929;
            background-color: #f8f2e8;
    }