@t-p ,That forum seems dead. Rare to get an answer it seems. I rather get help somewhere else if possible.
https://imgur.com/a/Seii5Ds
I just want the search bar beside the hamburger icon. And then the bell notification and account image to the top right of the page. And below, register and login should be placed in center
@nobbrat
Yep, well I can show you my html and css:
HTML:
<div class=”header-buttons”><button class=”search-button”>
<i class=”fas fa-search”></i>
</button>
<input class=”search-input” type=”text” placeholder=”Search…” />
<a class=”login-button” href=”#”>Login</a>
<a class=”register-button” href=”#”>Register</a>
<img class=”icon notification-button” style=”width: 15px; height: 23px;” src=”https://localhost/wordpress/wp-content/uploads/2023/08/notification-bell.jpg” alt=”Notification” />
<img class=”icon account-button” style=”width: 45px; height: 45px;” src=”https://localhost/wordpress/wp-content/uploads/2023/08/account.jpg” alt=”Account” /></div>
CSS:
.header-buttons {
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
margin-right: 0;
padding: 10px;
}
.header-buttons a {
text-decoration: none !important;
}
/* Search Button */
.search-button {
background-color: transparent;
border: none;
cursor: pointer;
padding: 0;
margin-right: auto !important;
width: 20px;
}
.search-button i {
font-size: 14px;
}
.search-input {
border: none;
background-color: transparent;
outline: none;
font-size: 14px;
line-height: 20px;
flex-grow: 1;
}
/* Button Styles */
.login-button, .register-button, .account-button, .notification-button, .search-button {
display: inline-block;
padding: 8px 16px;
border: none;
border-radius: 20px;
font-weight: bold;
transition: background-color 0.3s, transform 0.3s;
font-size: 16px;
}
.login-button {
background-color: blue;
color: white;
margin-right: 20px;
}
.register-button {
background-color: green;
color: white;
margin-top: 5px;
}
.account-button, .notification-button {
padding: 0;
display: inline-block;
width: 32px;
height: 32px;
}
.account-button img, .notification-button img {
width: 100%;
height: 100%;
display: block;
}
.icon {
margin-right: 15px;
}
/* Button Hover Effect */
.login-button:hover, .register-button:hover, .account-button:hover, .notification-button:hover, .search-button:hover {
background-color: white;
transform: scale(1.05);
}
.login-button:focus, .register-button:focus, .account-button:focus, .notification-button:focus, .search-button:focus {
outline: none;
}
/* Media Query for Mobile and Tablet */
@media (max-width: 768px) {
.header-buttons {
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 5px;
}
.search-button {
order: 0;
margin-right: 5% !important;
align-self: flex-end;
}
.login-button,
.register-button {
width: 40%;
padding: 10px;
font-size: 14px;
text-align: center;
}
.register-button {
margin-top: 15px;
margin-left: 5%;
}
.notification-account-buttons {
display: flex;
align-items: right;
margin-left: auto;
align-self: flex-end;
}
.notification-button, .account-button {
width: 25px;
height: 25px;
margin-left: 5px;
}
.search-button i {
font-size: 16px;
}
}