ScrollToFixed icon indicating copy to clipboard operation
ScrollToFixed copied to clipboard

How to fixed div on the page right

Open zeroone2005 opened this issue 12 years ago • 3 comments

How to fixed div on the page right

zeroone2005 avatar Sep 03 '13 09:09 zeroone2005

I'm going to need a little more to go on, but here is a demo that has a fixed element on the right:

http://jsfiddle.net/ZczEt/167/

bigspotteddog avatar Sep 03 '13 17:09 bigspotteddog

html

<a class="gotop"></a> <div class="main"> ... ... .... </main>

css: .main{ wdith:1000px; margin:0 auto;}

I want 'gotop' fixed on the right side of the page,

zeroone2005 avatar Sep 04 '13 01:09 zeroone2005

You should look at the example. This plugin only fixes to the top or bottom or somewhere in the middle. CSS is what you use to fix position elements right or left. Good luck!

bigspotteddog avatar Sep 04 '13 04:09 bigspotteddog