nathansmith / unsemantic

Fluid grid for mobile, tablet, and desktop.
http://unsemantic.com
MIT License
1.38k stars 162 forks source link

flexible images #49

Closed ghost closed 10 years ago

ghost commented 10 years ago

Recently I started messing around with this framework, but it's seems that using grids and flexible images css markup doesn't work together. Is there a way for solving this problem?

nathansmith commented 10 years ago

Unsemantic makes no presuppositions about images or the design of your site.

If you want to ensure that images don't extend beyond their grid units, do this…

img {
  max-width: 100%;
}
ghost commented 10 years ago

Sorry found out that the problem was only with unsemantic-grid-responsive.css, and only because I was missing grid-100 grid-parent class on upper element in the markup.