How do I position/style the geo location widget?
[These instructions are under development]
Example code to reposition the geo location widget:
Pull location dialof top-right:
.select-locations-wrap {
right: 0px!important; //To create offset from right side in 15 px: right: 15px;
left: unset;//reset default left position
}
Pull it top-left:
.select-locations-wrap {
right: unset; //reset property
left: 15px!important;
margin-left: unset; // reset styles for centering of block
https://www.w3.org/Style/Examples/007/center.en.html
}
Pull it bottom-left:
.select-locations-wrap {
right: unset;
left: 15px!important;// or any value
margin-left: unset;
top: unset;
bottom: 15px!important; or any value
Pull it bottom-right:
.select-locations-wrap {
right: 15px!important;
left: unset;
margin-left: unset;
top: unset;
bottom: 15px!important; or any value
}
Example code to change the style of the geo location widget (you can use any CSS style):
Change the style of the geo location widget
.select-locations-wrap { //change background color to red
background-color: red;
}
.select-locations-wrap * { //change font size
font-size: 15px!important;
}
.select-locations-wrap * { //change font family
font-family: 'Roboto';
}
A note about the use of "!important":
Sometimes the browswer will ignore some styles, because there are more important styles for that specific element. In this case, the use of "!important" is often an easy solution to force the browser to use the style that you require. More information here: https://www.w3schools.com/css/css_important.asp
Last updated