Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed responsiveness #541

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ <h2>Explore Popular Destinations</h2>
<section id="contact">
<div class="container">
<div class="contact-container">
<div class="grid-container">
<div class="grid-container-contact">
<div class="text-container">
<div class="heading">
<h2 class="title">CONTACT US</h2>
Expand Down Expand Up @@ -1187,7 +1187,7 @@ <h3>Follow Us</h3>
<!-- Deals and Offers Popup -->
<div id="dealsPopup" class="popup">
<div class="popup-content">
<span class="close-btn" id="closePopup">&times;</span>
<span class="close-btn" id="closePopup" onclick="document.getElementById('dealsPopup').style.display = `none`">&times;</span>
<h2>Exclusive Deals and Offers!</h2>
<p>
Get the best deals on flights, hotels, and travel packages. Don't miss
Expand Down
22 changes: 19 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@ nav {
color: #f1ecec;
}
.form-container{
position: absolute;
/* position: absolute;
right: 0;
top: 0;
top: 0; */
width: 50%;
height: 100%;
padding: 30px 45px;
Expand Down Expand Up @@ -1037,7 +1037,7 @@ body.dark-mode {
.booking-container h2 {
color: #f1f1f1; /* Lighter text color for readability */
}
}

@media (max-width: 768px) {
.itinerary {
flex: 1 1 calc(45% - 20px);
Expand Down Expand Up @@ -1882,9 +1882,15 @@ justify-content: center;
gap: 3rem;
}

.grid-container-contact{
display: flex;

}

/* Text Container */
.text-container {
padding-right: 1.5rem;
width: 60%;
}

/* Info Text */
Expand Down Expand Up @@ -1979,6 +1985,16 @@ justify-content: center;
.grid-container {
grid-template-columns: 1fr;
}
.text-container{
width: 100%;
}
.form-container{
width: 100%;
margin-bottom: 10px;
}
.grid-container-contact{
flex-direction: column;
}
}

/* Scroll to top button */
Expand Down