Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1237505
    yhshin1020
    Participant

    Hey,

    I have a google map shortcode set up on my website, and I would like to do two things:

    1) overlap a content band in between the map and the next content band, like the picture below.

    2) remove the margin between the map and the header above it (there is a small white space).

    Thanks!

    #1237508
    yhshin1020
    Participant
    This reply has been marked as private.
    #1237516
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> Global CSS :

    .page-id-2331 div#x-content-band-2 {
        top: -200px;
        position: relative;
        background-color: rgba(255,255,255,0.5) !important;
    }
    
    .page-id-2331 .x-column.x-sm.vc.x-1-1.mpc-column p:empty {
        display: none;
    }
    

    Hope that helps.

    #1237527
    yhshin1020
    Participant
    This reply has been marked as private.
    #1237530
    yhshin1020
    Participant
    This reply has been marked as private.
    #1237539
    Christopher
    Moderator

    Hi there,

    Update previous code to :

    @media (min-width:767px){
    .page-id-2331 div#x-content-band-2 {
        top: -86px;
        position: relative;
        width: 50%;
        float: right;
        border: 2px solid;
    }
    }

    Hope it helps.

    #1237561
    yhshin1020
    Participant
    This reply has been marked as private.
    #1237567
    yhshin1020
    Participant
    This reply has been marked as private.
    #1237609
    Paul R
    Moderator

    Hi,

    Yes, everything inside the content band will follow.

    To center it, remove float:right; and add left: 30%;

    eg.

    
    @media (min-width:767px){
    .page-id-2331 div#x-content-band-2 {
        top: -86px;
        position: relative;
        width: 50%;
        left: 30%;
        border: 2px solid;
    }
    }
    

    Can you provide us an image on how exactly you would like t to look like.

    Thanks

    #1237725
    yhshin1020
    Participant
    This reply has been marked as private.
    #1237739
    yhshin1020
    Participant
    This reply has been marked as private.
    #1238627
    Rad
    Moderator

    Hi there,

    That’s not possible, but you could try adding the background color to the column that has fade animation, then it will look as the box. Then using jQuery, move the map outside the column (direct to its section) and style it to look like as a background of column/box.

    Thanks!

    #1239286
    yhshin1020
    Participant
    This reply has been marked as private.
    #1240157
    Paul R
    Moderator

    Hi,

    Kindly change the code that reads

    
    @media (min-width: 767px)
    .page-id-2331 div#x-content-band-2 {
        top: -350px;
        height: 40vh;
        position: relative;
        width: 50%;
        left: 30%;
        background: #fff;
        box-shadow: 5px 5px 5px 0px rgba(102,102,102,0.4);
    }
    

    to this

    
    @media (min-width: 767px) {
    .page-id-2331 div.entry-content.content {
         position:relative;
    }
    .page-id-2331 div#x-content-band-2 {
        z-index: 99999;
        top: 60px;
        height: 40vh;
        position: absolute;
        width: 50%;
        left: 25%;
        background: #fff;
        box-shadow: 5px 5px 5px 0px rgba(102,102,102,0.4);
    }
    }
    

    Hope that helps.

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