Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1349590
    thaiunderdog
    Participant

    I’ve used this code for putting floating element in center position between 2 content band

    #crown .x-column {
    position: absolute;
    background-color: transparent !important;
    padding: 100px !important;
    top: -180px;
    z-index: 1000;
    max-width: 650px;
    left: 25.95%;
    height: 500px;
    }

    btw left: 25.95%; is only worked on my laptop screen. Any idea to make it stay center between 2 content band on all screen sizes ?

    #1349710
    Rupok
    Member

    Hi there,

    Thanks for writing in! Absolute positioning is never responsive for all devices. If you can provide your URL and a screenshot of what you are trying to achieve then we might be able to give you some suggestion.

    Cheers!

    #1350128
    thaiunderdog
    Participant

    Sorry for late reply, here is my site url : http://nsm1.com

    and “Choose your own king” image in the center is the floating element

    floating element

    #1350264
    Rupok
    Member

    Hi there,

    Thanks for writing back. Let’s update your code to following :

    #crown .x-column {
        position: absolute;
        background-color: transparent !important;
        padding: 100px !important;
        top: -180px;
        z-index: 1000;
        max-width: 650px;
        left: calc(50% - 325px);
        height: 500px;
    }

    Hope this helps.

    #1350319
    thaiunderdog
    Participant

    Thanks for your support. Btw I just find easier method by changing floating element to section’s background image.

    #1350329
    Lely
    Moderator

    You’re welcome!

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1349590 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>