Untitled
unknown
plain_text
a year ago
3.4 kB
12
Indexable
/* General Styling */
body {
margin: 0;
font-family: Arial, sans-serif;
}
header, footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
}
h1 {
font-size: 36px;
margin: 20px 0;
}
p {
font-size: 18px;
line-height: 1.6;
margin: 20px;
}
/* Carousel Styling */
.carousel {
position: relative;
width: 100%;
height: 500px; /* Adjust height as needed */
overflow: hidden;
}
.carousel-container {
display: flex;
transition: transform 0.5s ease-in-out;
width: 300%; /* 3 slides, so 300% */
}
.carousel-item {
min-width: 100%; /* Each item takes 100% width of carousel */
height: 500px; /* Ensure each item matches the carousel height */
}
.carousel-item img {
width: 100%;
height: 100%;
object-fit: cover; /* Make sure images cover the full container */
}
/* Carousel Navigation Buttons */
.carousel-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 15px;
cursor: pointer;
font-size: 30px;
z-index: 10;
outline: none;
transition: background-color 0.3s ease;
}
.carousel-btn:hover {
background-color: rgba(0, 0, 0, 0.8);
}
.prev-btn {
left: 10px;
}
.next-btn {
right: 10px;
}
/* Responsive Design */
@media only screen and (max-width: 768px) {
.carousel {
height: 300px;
}
.carousel-item {
height: 300px;
}
.carousel-btn {
padding: 10px;
font-size: 24px;
}
}
@media only screen and (max-width: 480px) {
.carousel {
height: 200px;
}
.carousel-item {
height: 200px;
}
.carousel-btn {
padding: 8px;
font-size: 20px;
}
}
/* Header and Footer */
header {
font-size: 24px;
font-weight: bold;
}
footer {
font-size: 14px;
}
/* General Form Styling */
form {
margin: 20px auto;
max-width: 400px;
padding: 20px;
background-color: #f4f4f4;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="submit"] {
width: 100%;
padding: 12px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
form input[type="submit"] {
background-color: #4CAF50;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
}
form input[type="submit"]:hover {
background-color: #45a049;
}
/* About Us Section */
.about-us {
padding: 40px;
background-color: #f9f9f9;
text-align: center;
}
.about-us h2 {
font-size: 28px;
margin-bottom: 20px;
}
/* Contact Form */
.contact-form {
max-width: 600px;
margin: 20px auto;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
width: 100%;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
border: 1px solid #ccc;
}
.contact-form textarea {
height: 100px;
}
.contact-form input[type="submit"] {
background-color: #333;
color: white;
padding: 10px;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
}
.contact-form input[type="submit"]:hover {
background-color: #555;
}
Editor is loading...
Leave a Comment