Loading...
 
Skip to main content

Features / Usability


Floated divs are staggered

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.

Image

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

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.


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.