CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
CSS Combat
[Solved] Float Problem...
elneco
Permalink to comment
#
November 2011
Forumns,
i got some boxes with a animation. You'll notice the last one of the line causes a rukus..
well these boxes will be contained in a flexible container so using a fixed width and using a clear on last item of row is not gonna solve this problem...
check it out:
http://tinkerbin.com/MmFSlPGW
any suggestions or ideas would be the super awesome.
joshuanhibbert
Permalink to comment
#
November 2011
Use positioning instead of margins, see here:
http://tinkerbin.com/Tgx60qxH
Margin affects the surrounding elements where positioning does not.
elneco
Permalink to comment
#
November 2011
i love you. thanks.
joshuanhibbert
Permalink to comment
#
November 2011
We hardly know each other! And no worries.
Add a Comment
i got some boxes with a animation. You'll notice the last one of the line causes a rukus..
well these boxes will be contained in a flexible container so using a fixed width and using a clear on last item of row is not gonna solve this problem...
check it out:
http://tinkerbin.com/MmFSlPGW
any suggestions or ideas would be the super awesome.
Margin affects the surrounding elements where positioning does not.