I have a markup like
<div>
<button>
<span>Short</span>
</button>
<button>
<span>Long label</span>
</button>
<button>
<span>Medium</span>
</button>
</div>
buttons should be the same width as div is. Span with longest text must be centered within its button, and others aligned by left side of that(longest) span. Is it possible to achieve only using CSS ?
please note that buttons list is dynamic, we can not know widths of spans