Bootstrap 3 Horizontal and Vertical Divider

前端 未结 7 2040
慢半拍i
慢半拍i 2021-01-30 21:25

I am having trouble to put in horizontal and vertical lines on my website. Not sure what\'s wrong with this.

I tried using borders but I am not sure if I am doing it rig

7条回答
  •  抹茶落季
    2021-01-30 21:46

    I know this is an "older" post. This question and the provided answers helped me get ideas for my own problem. I think this solution addresses the OP question (intersecting borders with 4 and 2 columns depending on display)

    Fiddle: https://jsfiddle.net/tqmfpwhv/1/


    css based on OP information, media query at end is for med & lg view.

    .vr-all {
        padding:0px;
        border-right:1px solid #CC0000;
    }
    .vr-xs {
        padding:0px;
    }
    .vr-md {
        padding:0px;
    }
    .hrspacing { padding:0px; }
    .hrcolor {
        border-color: #CC0000;
        border-style: solid;
        border-bottom: 1px;
        margin:0px;
        padding:0px;
    }
    /* for medium and up */
    @media(min-width:992px){
        .vr-xs {
            border-right:1px solid #CC0000;
        }
        }
    

    html adjustments to OP provided code. Red border and Img links for example.

    Rich Media Ad Production
    Web Design & Development
    Mobile Apps Development
    Creative Design

    Web Analytics
    Search Engine Marketing
    Mobile Apps Development
    Quality Assurance

提交回复
热议问题