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

Home Forums CSS Center floated element Re: Center floated element


@wolfcry911 I floated the container so it assumes the content size and the ul to have ul and .right side by side. What I’m trying to accomplish is to have a menu that can grow on the left and a search box that will be centered in the remaining space in .right.

The problem with your solution is that .rigth has fixed width.