[英]Align Woocommerce Search Bar to Left
I would like to have my search bar aligned to the left and approximately a 1/4 of the size it currently is (so it ends above the About Us Section).我想让我的搜索栏向左对齐,大约是它当前大小的 1/4(所以它在关于我们部分的上方结束)。 I would also like to make a border around it in #03c5b3.
我还想在#03c5b3 中围绕它做一个边框。
Can anyone assist with this - I have tried several options lifted from other sites but nothing that is specific to my requests.任何人都可以协助解决这个问题 - 我尝试了从其他网站提取的几个选项,但没有任何特定于我的请求的选项。 I used:
我用了:
.woocommerce-product-search {
border-radius: 40px;
overflow: hidden;
display: flex;
flex-direction: row-reverse
}
.woocommerce-product-search input {
border-radius: 0 40px 40px 0;
border-left: 0
}
.woocommerce-product-search button:before {
content: "seach";
font-family: "Arial";
text-align: center;
display: inline-block;
font-size: 15px;
}
.woocommerce-product-search button {
font-size: 0px;
background-color: #fafafa;
color: #666666;
border: 1px solid #cccccc;
border-right: 0;
border-radius: 40px 0 0 40px;
}
.woocommerce-product-search {
border-radius: 40px;
overflow: hidden;
display: flex;
flex-direction: row;
}
.left {
position: absolute; important
right: 0px;
width: 300px;
border: 3px solid #73AD21;
padding: 10px;
}
However this didn't align it left and the border was too thick and the box not centred in the middle.但是,这并没有将其左对齐,并且边框太厚并且框不在中间居中。 Seemed like too many new issues to fix!!
似乎有太多新问题需要解决!!
https://sfxraynew.johnstoncommunications.co.uk/ https://sfxraynew.johnstoncommunications.co.uk/
Thanks谢谢
Something like this maybe?可能是这样的? https://prnt.sc/MxKEpN2sTeIu
https://prnt.sc/MxKEpN2sTeIu
#header-right-section {
display: flex;
align-items: center;
justify-content: space-between;
}
#header-right-section #header-right-sidebar {
order: 1;
}
#header-right-section nav#site-navigation {
order: 2;
}
#header-right-section .header-action {
order: 3;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.