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. I tried float:left
, float:right
, clear:right
, clear:both
, display:inline
, pretty much anything. Help?
views:
38answers:
2
A:
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!
David Conde
2010-09-05 23:56:08
thanks for replying! i already did. if you look at the source of the page i provided, the text posts (below photo posts) are width:380 (i think?) and they are in the scrolling div which is set to 100%. posts have float:left; and seem to ahve the problem still.
Earl Larson
2010-09-05 23:58:20
A:
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.
michaeltwofish
2010-09-06 00:54:43
i think that might work! thankyou, please note im only 16 and i just like to make themes so im not very sharp on my code :)
Earl Larson
2010-09-06 01:03:20
could it be that the overflow div is not large enough? i mean, i have it set to 5000px im pretty sure that would hold a couple of 280px divs and some pictures...
Earl Larson
2010-09-06 01:53:27
I'm not sure what you're saying is wrong now, as entries appear to be next to each other whether they're images or text. Note however that your images are in an li element of their own, but the text entries are all in a single li. Using a debugging tool such as Firebug might be useful for you.
michaeltwofish
2010-09-06 02:41:47
if you go to my page, go to the end of the div (move mouse to right) and look at "i need this 24/7" that is a seperate post, a seperate div that shouldnt be under the one above it.
Earl Larson
2010-09-06 02:58:58
woah, well it turns out you are an html genius! i needed each post to have its own list style. thanks!
Earl Larson
2010-09-06 03:11:13