A
A
angry_yum2018-02-23 15:18:03
css
angry_yum, 2018-02-23 15:18:03

How to remove this border?

Good afternoon, I have a slick slide, for me it shows two slides at a time. And I needed to visually separate them with a line. I did it with border. but here's the question, how to make the border was only in the center, and there were no extra lines? 5a90065057f21105133430.png
Or can it be done somehow differently than through border ?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
aloky, 2018-02-23
@angry_yum

nth-child()?

D
dmnmkua, 2018-02-23
@dmnmkua

make through

div:nth-child(2n + 1) {
 position: relative;
}
div:nth-child(2n+1):before {
 content: "";
 position: absolute;
 top: 0;
 right: 0; (ну или сколько будет нужно)
 width: 1px;
 height: 100%;
 background: yellow;
}

S
serginhold, 2018-02-25
@serginhold

.item + .item {
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question