Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using align(both) collapses div? #532

Open
blaasvaer opened this issue Jun 25, 2017 · 0 comments
Open

Using align(both) collapses div? #532

blaasvaer opened this issue Jun 25, 2017 · 0 comments

Comments

@blaasvaer
Copy link

blaasvaer commented Jun 25, 2017

When I have this markup:

<span class="jewellery_image" data-id="<?php the_ID(); ?>">
	<a class="image_link" href=""><?php the_post_thumbnail('medium'); ?></a>
	<a class="title" href=""><?php the_title(); ?></a>
</span>

And this (s)css:

.jewellery_image {
	@include column(1/4, $cycle: 4, $gutter: 1);
	
	img {
		@include align(both);
	}
}

The box (.jewellery_image) collapses. And I have to specify a height (in px as % doesn't work) for it to not have it collapse.

Is this by design or a bug?

I've tried all possible display modes for all parent and child elements to make it work, but only specifying a height for .jewellery_image will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant