Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Closed Thread
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-04-2012, 06:44 PM   PM User | #1
operapixie
Regular Coder

 
Join Date: Nov 2011
Posts: 129
Thanks: 11
Thanked 0 Times in 0 Posts
operapixie can only hope to improve
Question Masonry layout help needed - WordPress (cross-post)

Hi there,
This is my first post in the JavaScript side of these forums. I think my issue involves both PHP and javascript, thus the cross-post.

I have a client who wants their articles laid out similarly to this page, but mainly with just the article image, date & article title. On our development side I've managed to get things set up as far as this. This is the grid layout the client wants for the articles:



My understanding is that I need to be using an array of columns in the php, and then have all the dimensions set up in javascript somehow. I've got the first row set up. But when I try to add the longer/narrower 2nd row grid, ALL the larger square images crop and then tile, instead of just the one row.

I am admittedly REALLY new to making custom PHP and javascript changes, so I'm sure this is a pretty easy thing for someone expert to handle. But I'm a good learner so if someone can send me in the right direction or something, I'm happy to run with it as best I can.

Thanks in advance.

~Laura

Last edited by operapixie; 09-04-2012 at 07:22 PM..
operapixie is offline  
Old 09-04-2012, 06:52 PM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
Quote:
Originally Posted by operapixie View Post
This is the grid layout the client wants for the articles.
that's a broken link (for me at least).

is there some reason this is not a css question?
xelawho is offline  
Old 09-04-2012, 07:19 PM   PM User | #3
operapixie
Regular Coder

 
Join Date: Nov 2011
Posts: 129
Thanks: 11
Thanked 0 Times in 0 Posts
operapixie can only hope to improve
I honestly don't know WHERE it belongs. As far as I can tell, the process involves PHP, CSS and Javascript.

I will fix the image link right now. My apologies. I think maybe the site where it resides requires a membership to view it that way.
operapixie is offline  
Old 09-04-2012, 08:15 PM   PM User | #4
c1lonewolf
Regular Coder

 
Join Date: Sep 2002
Posts: 216
Thanks: 0
Thanked 11 Times in 11 Posts
c1lonewolf is an unknown quantity at this point
magazine layout
You can also try searching for random image magazine layouts on google.
__________________
NO Limits!!
c1lonewolf is offline  
Old 09-05-2012, 10:41 AM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,604
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Cross-posting is highly frowned upon (not just in this forum). I suggest to merge this thread with the other one in the PHP section.
__________________
Don’t click this link!
VIPStephan is offline  
Closed Thread

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:50 AM.


Advertisement
Log in to turn off these ads.