I want to create a fixed position button that will run on my site, either on the left hand side or as a popout panel (see for a cool popout button at the bottom of the screen). Clicking on the button will launch a popup window that my company uses for contact and feedback information.
Is there a basic example CSS for these types of buttons? I am a JS guy and created the popup window with no problems, but I don't have the CSS skills to get the button to activate my window.
I want to create a fixed position button that will run on my site, either on the left hand side or as a popout panel (see http://uservoice.com/fullservice for a cool popout button at the bottom of the screen). Clicking on the button will launch a popup window that my company uses for contact and feedback information.
Is there a basic example CSS for these types of buttons? I am a JS guy and created the popup window with no problems, but I don't have the CSS skills to get the button to activate my window.
Share Improve this question asked Mar 11, 2011 at 18:42 Wilson TomerWilson Tomer 711 gold badge1 silver badge2 bronze badges2 Answers
Reset to default 10the css would be:
.button {
position: fixed;
bottom: 0;
right: 0; //or left: 0; depending on where you want it to be.
}
with html being:
<div class='button'> button text here </div>
Try something like this:
#feedback-button {
position: fixed;
bottom: 0px;
right: 0px;
}