Okay
  Public Ticket #225781
Create border around columns
Closed

Comments

  • Evan started the conversation

    I have 3 white columns on the homepage and I am trying to add a thin black border around each box. Any ideas?

  •  8,992
    Tahir replied

    Hey Evan!

    You will have to add a extra class to each column such as "border-column" and add this into the Custom CSS box located in your Salient Options panel :

    .border-column {
        border-left: 3px solid #000;
    }
    

    Cheers


    ThemeNectar Support Team 

  • Evan replied

    Thank you so much!

  • Aaron replied

    Hey Tahir,

    What if I wanted the border to only show up on desktop and not mobile devices?

  •  8,992
    Tahir replied

    Hey Aaron!

    You will have to wrap it in a media query. Like this:

    @media only screen and (max-width: 480px) {
        .border-column {
            border-left: 3px solid #000;
        }
    }
    

    Thanks


    ThemeNectar Support Team 

  • Aaron replied

    Thank you!

  • samwell7814690 replied

    Hi Tahir,

    I was looking for this solution too and have successfully implemented it although the following code does not exclude it from tablet and phones? I tried the code you used below and it just removed it from desktop and it remains on tablet and phone?

    Is there a way of having just horizontal seperators once it switches to phone breakpoint?

    An example page can be seen here https://gateonedev1.staging.wpengine.com/retail-rework/

    Thanks
    Damien

    /* vertical line between columns desktop only*/
      .column-divider {
            border-right: 1px solid #d6d6d6;
        }
        
        @media only screen and (max-width: 480px) {
        .column-divider {
            display: none;
        }
    }
    
  •  8,992
    Tahir replied

    @samwell,

    IF you want to remove it from tablet and phone as well use below css: 

    @media only screen and (max-width: 1000px) {
        .column-divider {
            display: none !important;
        }
    }

    Best


    ThemeNectar Support Team 

  • samwell7814690 replied

    Hi,


    Thanks, that kind of works but actually hides the entire column on mobile and tablet and not just the divider

  •  8,992
    Tahir replied

    Could you create a new ticket and provide the page url so we can write up the css for exactly what you need. 

    Thanks 


    ThemeNectar Support Team