mgmartel / WP-Tiles

Add beautiful, fully customizable post tiles or tiled galleries anywhere on your WordPress site easily with WP Tiles.
http://wp-tiles.com/
37 stars 25 forks source link

Unable to change tile min-height #18

Open kotmatpockuh opened 9 years ago

kotmatpockuh commented 9 years ago

For example in css i set min-height for tile, but when i load page - height is calculated with a little bit of "magic". And it cause some "bad" .top offset How can i set min tile height?

rubenmarcus commented 7 years ago

@kotmatpockuh changed through css:


.wp-tiles-container{
    height: auto!important;}

.wp-tiles-grid {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.wp-tiles-loaded .wp-tiles-tile {
    position: relative;
    width: width you want!important;
    height: height you want!important;
    top: 0!important;
    left: 0!important;
    margin-bottom: margin between tiles;
}