zonear / isotope-perfectmasonry

PerfectMasonry extension for Isotope
137 stars 49 forks source link

how to fix a maximum width to my container? #8

Closed seferphier closed 11 years ago

seferphier commented 11 years ago

Hi Mikko,

This extension is awesome and perfect. I am new to jquery.

Is a way to set a maximum width to my container.

Much thanks, Jack

mikkotikkanen commented 11 years ago

Hey. Thanks! :)

You could try to set max-width CSS style to the containers parent, since the isotope-container is resized dynamically.

seferphier commented 11 years ago

I can't believe I didn't think of that! I was too focused on changing the js. Many thanks.

mikkotikkanen commented 11 years ago

Hehe, no worries :)

seferphier commented 11 years ago

ah. i remember what was wrong with setting max-width in the css. The extension still organizes the elements as if the width is still 100% which means that some elements are hidden

mikkotikkanen commented 11 years ago

Are you sure you set the max-width to the parent of the container? Because the isotope container will be resized by the script.