Is there anyone who'll help me?

68 views
Skip to first unread message

iamthespy

unread,
Jul 30, 2012, 6:53:22 PM7/30/12
to tumblr...@googlegroups.com
Currently my blog has four columns spanning across the page.I desire to have a feature for my blog theme where there are 3 preset limits for picture width, corresponding to the width of one column, two column, and three column (I could figure out conversions). Any picture being posted on the blog would scale down in size to whatever column width most closely matches its width (the math is easy here). I'm a strong programmer (though I don't have any experience with HTML), but could someone point me in the right direction? Are there any limitations that I'm not aware of? Thanks fellas.

Sean Zhu

unread,
Jul 31, 2012, 1:41:23 AM7/31/12
to tumblr...@googlegroups.com, dip...@hotmail.com
Looks like you'll need to use JavaScript. There's probably a better way to do this, but you can have a table with three columns. Have the JavaScript loop through each post to see into which column it should go, then have it place the post in that column.

Prerequisites: moderate HTML and JavaScript skills, basic CSS skills.

But! If you're willing to step a bit outside your specifications in exchange for much less coding, jQuery Masonry does something very similar to what you want.

kedow...@gmail.com

unread,
Aug 1, 2012, 3:38:21 PM8/1/12
to tumblr...@googlegroups.com, dip...@hotmail.com
I'm using a custom theme I purchased that does something similar to what you want to accomplish. The theme is Inspire Well by Style Hatch, if that helps. The size is controlled by tagging. For example a tag with "xs" is one column. No tag is defaulted to 2 columns. "xl" is three columns. I figured it was more cost effective to buy the theme instead of spending the time recreating the functionality.

John Clifford

unread,
Aug 2, 2012, 3:46:26 PM8/2/12
to tumblr...@googlegroups.com, dip...@hotmail.com, kedow...@gmail.com
This looks like a good solution for various sizes of photos and videos . I am planning to switch to this theme. Any tips or draw backs to the Inspire Well Theme ? Thanks
Reply all
Reply to author
Forward
0 new messages