0

Is there a <div> or <span> equivalent for having by default the CSS property display: flex ?

Kunj
  • 1,890
  • 2
  • 24
  • 32
Dimitri Kopriwa
  • 10,978
  • 17
  • 84
  • 169
  • No, but you can find a soluton here: http://stackoverflow.com/questions/9845011/are-custom-elements-valid-html5 ... which answers might be a possible duplicate to this question – Asons Feb 16 '17 at 10:33

2 Answers2

1

No such thing exists at the moment :(


But...

You could make your own in some browsers...

HTML:

<flex>
    <div>Foo</div>
    <div>Bar</div>
</flex>

CSS:

flex {
    display: flex;
}
Eamonn
  • 418
  • 3
  • 11
1

None. Tried checking if there is a flex tag using HTML5... :(

ZZZ
  • 31
  • 3