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

Home Forums CSS [Solved] Trouble with float vertical alignment Reply To: [Solved] Trouble with float vertical alignment


I guess I just didn’t play around enough (or was doing so in too-complex an environment) because hacking around on codepen I think I just stumbled on an almost-solution (after re-reading Here’s a new pen that solves the problem for the most part using absolute positioning within the containing div:

The only issue I have with that solution is the right: 30%; to line up the stock count. Ideally, I would want that div to move with the customer info one (i.e not also require a top: 0 and not require the right: 30% but instead just float correctly). I think I am one step closer to the optimal solution however.