Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Adding fixed Facebook/Twitter share WP mobile

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #239710
    damian5000
    Participant

    Okay, I give up. Been at it for 2 hours now and can’t get it to work.

    I’m trying something like this:

    <div id="container" style="position:relative !important;">
    
    <div class="sharebuttons" style="background-color: #3B5998; position:absolute !important; bottom:0 !important;"><a href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink();?>" onclick="javascript:window.open(this.href,'','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><span class="sharefirst">f</span><span class="sharetext" style="padding-right: 10px"> Share</span></a></div>
    

    I’ve tried it in all manner of locations. In header in various spots, in single.php in various spots….

    #239711
    damian5000
    Participant

    Okay. I have solved it with

    #custom #sharebuttons
    {
    position: fixed;
    bottom:0;
    right:0;
    margin-right: auto;
    margin-left: auto;
    width:100%; 
    height:10%;
    z-index:999999;
    }
    
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.