Created
August 26, 2011 05:56
-
-
Save andreacampi/1172798 to your computer and use it in GitHub Desktop.
last-page flag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This won't work, the second grid will be picked up, leaving an unsightly empty column if there isn't enough content --> | |
<div class="grid article cols-2 page-1"> | |
<div class="container col-1 cols-2" data-sizes="title"></div> | |
<div class="container col-1 cols-2" data-sizes="author"></div> | |
<div class="column"></div> | |
<div class="container col-3 cols-1" data-sizes="thumbnail"></div> | |
<div class="column col-3"></div> | |
</div> | |
<div class="grid article cols-2"> | |
<div class="column"></div> | |
<div class="column col-3"></div> | |
</div> | |
<div class="grid article cols-2 last-page"> | |
<div class="column"></div> | |
<div class="container col-3 cols-1" data-sizes="something"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- The workaround is to add an extra column. --> | |
<div class="grid article cols-2 page-1"> | |
<div class="container col-1 cols-2" data-sizes="title"></div> | |
<div class="container col-1 cols-2" data-sizes="author"></div> | |
<div class="column"></div> | |
<div class="container col-3 cols-1" data-sizes="thumbnail"></div> | |
<div class="column col-3"></div> | |
</div> | |
<div class="grid article cols-2"> | |
<div class="column"></div> | |
<div class="column col-3"></div> | |
</div> | |
<!-- But now this grid is candidate to be used on other pages too, so I need to hide it from all other pages--assuming I know how many pages an article will have. --> | |
<div class="grid article cols-2 no-page-2 no-page-3 ..."> | |
<div class="column"></div> | |
<div class="container col-3 cols-1" data-sizes="something"></div> | |
<div class="column col-3"></div> <!-- extra column. maybe class="hidden" would be good too, for paranoia --> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment