ed quijano
ed quijano

Reputation: 11

CSS Validator doesn't recognize flex-wrap: wrap;

I am trying to validate a css file at w3c css validator. When it is tested it returns an error stating that "Property flex-wrap- doesn't exist : wrap". This is my part that css validator sees wrong.

.row {
    width: 100%;
    display: flex;
    flex-wrap-: wrap;
}

Any suggestion how to solve this problem?

Thanks

Upvotes: 0

Views: 520

Answers (1)

Michel
Michel

Reputation: 28359

flex-wrap- indeed doesn't exist...but flex-wrap exists. See documentation on Mozilla Developer Network

Replace your CSS with the following :

.row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

Upvotes: 2

Related Questions