Uneven height - problem with column - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Uneven height - problem with column (/showthread.php?tid=5586) |
Uneven height - problem with column - ZackWhite - 2014-02-01 Hi, I seem to have stumbled upon my next problem. I have a news page with all the news articles. Image height and excerpt all have the same height/length. But titles can ofcourse be of a variable length. This causes the following problem: view attachment Any ideas how this can be solved? Small part of the code (all that is following is the same): Code: <div class="four columns"> RE: Uneven height - problem with column - Timbow - 2014-02-01 I don't reallly understand what has happened, or what you are trying to do. Is it four post extracts, or eight? or any number in four columns? and are they to be 1234 5678 or 1357 2468 and why do they have to have all the same height? And this is skeleton, yes? RE: Uneven height - problem with column - ZackWhite - 2014-02-01 It are 8 posts and they should be ordered like this: 1234 5678 Now they are: 1234 xxx5 678 They don't have to be the same height, they just have to be aligned next to each other (each row = 4 articles) without that big empty hole in the middle. But I have no idea why this happens. And yes, I'm using skeleton. EDIT: - Removed all the custom CSS and still the same problem. RE: Uneven height - problem with column - shawn_a - 2014-02-01 This happens when one column is larger or smaller in your case, this is a very common issue with this kind of css layout and the fix is rather tricky. A quick fix might be setting a min-height on them. RE: Uneven height - problem with column - Timbow - 2014-02-01 I think with skeleton there is a class .row so you wrap each row of columns in a <div class="row"> There isn't much documentation with skeleton that I ever found so there is for me often a bit of experimentation. So the <div class="row"> may or may not need to be class="row sixteen columns" and then the four nested columns may or may not need to have the first and last given alpha and omega classes, so maybe <div class="row"> <div class="four columns alpha">...</div> <div class="four columns">...</div> <div class="four columns">...</div> <div class="four columns omega">...</div> </div> <div class="row"> <div class="four columns alpha">...</div> <div class="four columns">...</div> <div class="four columns">...</div> <div class="four columns omega">...</div> </div> but that alpha omega stuff can put you out by 10px because it is losing the 10px margin that all skeleton blocks have RE: Uneven height - problem with column - ZackWhite - 2014-02-01 Might work but the problem is that I use this in combination with the news manager addon. So I use the funtion Code: nm_custom_display_recent(' No possibility to add the row class I guess. RE: Uneven height - problem with column - Carlos - 2014-02-01 Would it be enough to separate 1234 and 5678 with <br class="clear" />? If so, with latest NM Addons version 0.9.0 you may do it like this: PHP Code: <?php RE: Uneven height - problem with column - shawn_a - 2014-02-01 I dont think so. I mean if you want it to be responsive and tile automatically, if its a static layout that would work I guess. RE: Uneven height - problem with column - Timbow - 2014-02-01 <br class="clear" /> is a skeleton method for clearing columns, it's written in the css comments. Don't know what the effect would be of giving the 8 divs Code: display: table-cell; RE: Uneven height - problem with column - ZackWhite - 2014-02-01 (2014-02-01, 06:29:44)Carlos Wrote: Would it be enough to separate 1234 and 5678 with <br class="clear" />? Although I think it's not really the way to work, it works for now. Content is still responsive. Will comment when I find a different solution. |