Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

floating issue #5610

Closed
fpsdf opened this issue Oct 23, 2012 · 2 comments
Closed

floating issue #5610

fpsdf opened this issue Oct 23, 2012 · 2 comments

Comments

@fpsdf
Copy link

fpsdf commented Oct 23, 2012

Hey everyone,

This is most probably total newbieness, but I can't seem to get divs to float properly. All I want is to get them lined up on each row of divs, and since they have different heights from one another, this weird thing happens of getting two short divs stacked vertically, leaving some blank spaces where a div could be placed instead...

https://www.dropbox.com/s/uqxo0w48c8zsreb/Screen%20Shot%202012-10-23%20at%2011.23.59.png

@mdo
Copy link
Member

mdo commented Oct 23, 2012

With different heights, floats will wrap to the closest one and throw off your intended display. The way you want them to behave is not how they work. Instead, you'll have to wrap every "row" of columns in a div (div.row) to get the behavior you need.

@mdo mdo closed this as completed Oct 23, 2012
@fpsdf
Copy link
Author

fpsdf commented Oct 23, 2012

markdotto,

That's precisely it. Works like a charm.
I thought I didn't need to wrap each 12 columns and that it would automatically line up each row of divs comprised on each 12 columns. I was wrong :)

Thank you very much for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants