Commit e4be26bf by Mac Stephens

fixed currency box going under div below when reisizing window

parent a5d8d386
...@@ -36,6 +36,7 @@ body { ...@@ -36,6 +36,7 @@ body {
.navbar-nav .nav-link { .navbar-nav .nav-link {
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.085em; letter-spacing: 0.085em;
font-size: larger;
color: #999999; color: #999999;
padding-top: 37px; padding-top: 37px;
padding-bottom: 37px; padding-bottom: 37px;
...@@ -132,15 +133,29 @@ body { ...@@ -132,15 +133,29 @@ body {
.currency-expert-box { .currency-expert-box {
position: absolute; position: absolute;
top: 30%; top: 30%;
left: 20%; left: 10%;
transform: translateX(-50%); transform: translateX(-50%, -50%);
background-color: rgba(246, 246, 246, 0.9); background-color: rgba(246, 246, 246, 0.9);
padding: 20px; padding: 20px;
width: 30%; width: 30%;
max-width: 400px;
z-index: 2; z-index: 2;
border-radius: 10px; border-radius: 10px;
} }
@media (max-width: 768px) {
.currency-expert-box {
width: 80%; /* Adjust width for smaller screens */
}
}
@media (max-width: 576px) {
.currency-expert-box {
width: 90%; /* Adjust width for even smaller screens */
padding: 15px; /* Adjust padding for smaller screens */
}
}
/* Content Section Styling */ /* Content Section Styling */
.content-section { .content-section {
position: relative; position: relative;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment