Horizontally align div without float [duplicate]
问题 This question already has answers here : How align 2 adjacent divs horizontally WITHOUT float? (5 answers) Closed 5 years ago . I want to know if there exists an elegant way to horizontally align 3 divs without using float css property. HTML: <div id="parent"> <div id="first">Left</div> <div id="second">Middle</div> <div id="third">Right</div> </div> I ask this question because the parent div has not float property and adding float to children cause problems on page resizing. 回答1: You can use