progNewbie
progNewbie

Reputation: 4832

Flexbox: set a border

this is my result of a further question: http://jsfiddle.net/20mx2406/ now I want these flexboxes to have a border, but it doesn't work.

<div class="eqWrap">
    <div class="equalHW eq">asdfo <br> asdf</div>
    <div class="equalHW eq">test</div>
    <div class="equalHW eq">test2</div>
</div>

.eqWrap { 
    display: flex; 
}

.eq { 
    padding: 10px;
    background: darkgrey;
    margin: 2px;
    border: 5px;
    border-width: 5px;
    border-color: black;
}

.equalHW { 
    flex: 1; 
}

Any advice?

Thank you

Upvotes: 0

Views: 156

Answers (2)

myTerminal
myTerminal

Reputation: 1646

It seems to work here: http://jsfiddle.net/20mx2406/13/ with

border: 1px solid Black;

Upvotes: 3

Norah
Norah

Reputation: 83

Try using border-style:solid;or check the other border-style values.

Upvotes: 2

Related Questions