divs next to eachother, float:left or right will not work
http://earldev.tumblr.com/
I am making a theme that uses a script that lets the div
scroll on mouseover. The images work find but any text posts will float below the other text post.开发者_Python百科 I tried float:left
, float:right
, clear:right
, clear:both
, display:inline
, pretty much anything. Help?
You need to specify a width to the divs and then float it to any of the sides, if you don't specify a width, the it will take the whole 100% of the size, thus sending the next one to the bottom!
Hope I can help!
It's not a CSS issue, you have your elements nested incorrectly. For the text entries, you're closing the divs of class textt
but not the divs of class posts
, so the second text entry is in the first, and the third is in the second.
精彩评论