Floated divs are staggered Posted by Kent Barrett 22 Feb 2011 16:40 UTC What causes, say float-left divs to not align vertically? I have a tracker output using a template that puts the output in a div, so they can float up to fill a page. But, the dives float staggered.
Posted by Gary Cunningham-Lee 23 Feb 2011 01:48 UTC Maybe there is a line break being added after each div. If so, it may be possible to modify the template so that the code that produces the divs doesn't also produce the line break. Or if the line break can't be avoided at the source, you could try causing it to not display by using CSS, like div class="nameofmyimagescontainer" br {display:none;} and hopefully there aren't other br tags in that div that you do want to display. -- Gary
Posted by Kent Barrett 23 Feb 2011 02:13 UTC div.listingsPageContainer br { display: none; } Does indeed clobber it. Somewhere along the line there is a break (not a correctly terminated one) inserted after the item container div. This is an html layout so it's divs inside {HTML} tags in the wiki template page. There's no "air" in the html.
Posted by jakalope 23 Feb 2011 04:44 UTC I ran into this problem as well. Found that I had to string the divs together without any tabbed formatting for readability. DIVcontentDIVDIVcontentDIVDIVcontentDIV my example is ugly but I think you get the idea.