MyBB Community Forums
Can't position weather button... - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community (https://community.mybb.com/forum-12.html)
+--- Forum: General Discussion (https://community.mybb.com/forum-11.html)
+---- Forum: Web Development and Administration (https://community.mybb.com/forum-133.html)
+---- Thread: Can't position weather button... (/thread-111810.html)



Can't position weather button... - theripetomato - 2012-01-17

No matter what I do, it stays in the top left corner. I want it in the top RIGHT corner, any suggestions?

Quote:#weather button {
height: 90px;
width: 240px;
top: 0px;
right: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: auto;
margin-left: auto;
left: auto;
bottom: auto;
background-color: #FFF;
clip: rect(0px,0px,auto,auto);
position: fixed;



RE: Can't position weather button... - ranjani - 2012-01-17

have you tried #weather {float: right;}


RE: Can't position weather button... - theripetomato - 2012-01-17

This also keeps it in the top left corner:

Quote:}
#weather button {
height: 90px;
width: 240px;
background-color: #FFF;
float: right;



RE: Can't position weather button... - ranjani - 2012-01-17

where you have that weather box ? on the main site div element is weather hence suggestion is #weather {float: right;}


RE: Can't position weather button... - theripetomato - 2012-01-17

That worked, thanks ranjani!