Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Nested div question Re: Nested div question

#118238
SgtLegend
Member

The only way I have ever known how to do it (_mainly because I don’t like horizontal content that scrolls_) is by have the parent container use a set width with an inner container that is the width of the elements within it in which case is `600px` in your example.

See the following pen for an example: http://codepen.io/ChrisUpjohn/pen/qGAri