Back to Top

VNemethVNemeth Registered Users Posts: 42 Big grins
edited September 30, 2014 in SmugMug Customization
I have make a Back To Top text that I have positioned on the bottom of my gallery.
I used code <a href="#" class="mybox">Back to Top</a>
I wish to put the text in a small box or Make it look like a button to highlight it.
Any help I can get with the code is appreciated

Vic

Comments

  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited September 30, 2014
    This is what I used in html block. See my homepage.
    <div id="topButton">
    <a href="#top">BACK TO TOP</a>
    </div>
    
    CSS tab
    #topButton {
      position: fixed;
      bottom: 0;
      left: 50%;
      width: 90px;
      margin-left: -45px;
      margin-bottom: 12px;
      text-align: center;
      padding: 2px 10px;
      z-index: 90;
      background-color: rgba(22, 22, 22, .50);
      border: 2px solid  rgba(255, 255, 255, .50);
      border-radius: 10px;
    }
    
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • VNemethVNemeth Registered Users Posts: 42 Big grins
    edited September 30, 2014
    Allen
    I like how yours looks like a button. This is what I want to do. However I would like for it to stay on the bottom and not float like yours. How would I modify your code to do this.
    Vic
  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited September 30, 2014
    Not sure how to get it all the way to the bottom. But I like mine because as scrolling down more and more
    photos appear and it's available to pop to the top.
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • VNemethVNemeth Registered Users Posts: 42 Big grins
    edited September 30, 2014
    Allen
    I found the answer. If I change position to static then the button stays at the end of the gallery and doesn't float.
    Thanks for the input.
    Vic
Sign In or Register to comment.