Home › Forums › JavaScript › Gallery Thumbs off placement… › Re: Gallery Thumbs off placement…
February 22, 2013 at 4:09 am
#125654
Participant
Reconsider the way you’re approaching this problem. You should not depend on JavaScript to create DOM elements and apply correct styles. You need to separate each into its own layer. HTML = Mark up & Content, CSS = Presentation, and JS = Interaction (Altering CSS and Adding HTML is OK, but after correct design has been rendered).
This way you would know exactly how each element in your layout would behave.
The java script is adding inline styles. It looks like the plug-in [is calculating surrounding elements](http://farm9.staticflickr.com/8234/8497494094_8e45d7266e_o.png) and applying styles.
or
[Fancybox](http://fancyapps.com/fancybox/).