DISQUS

DISQUS Hello! fortes.com is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Introducing the Dynamic Layout Library

Started by Fortes · 11 months ago

I’m happy to introduce version 1.0 of my Dynamic Layout JavaScript library.

Dynamic Layout is a simple library that allows you to easily adjust page layout based on the current browser width.

The script works by modifying the class property on the body element, adding a new class name that will look something like bw-1000, where 1000 [...] ... Continue reading »

3 comments

  • Hey Filipe, whats the advantage of using this library compared to floating divs and % for widths?
  • The advantage is that even percentage-based layouts won't look great at all sizes (columns can end up too big or too small as you get to very large or small screens). Floating divs can work OK in some situations, but not always.

    It really depends on the situation though, not all pages would get much use out of the script, but for some projects, it's been really useful for me, so I decided to release in case others wanted to use it as well.
  • Cool, thanks for releasing it. I'll try to play around with it when I get a chance. As for the column sizes too small or large I agree it's an issue, same with weired floating behaviors. My current solution is to set min widths, so that it doesn't get crazy once the browser is smaller than the standard screen size (960px).

Add New Comment

Comments are closed for this post.
Returning? Login