Calculate div width from post count?
-
Hello!
Trying to get a horizontal layout working for a new portfolio site, where each different story is in its own category and gets a page of its own. Problem being the horizontal container must have a fix width corresponding to the number of posts within the shown category.
This might be trivial, but I haven’t quite got the hang of php yet. I’m guessing it’s possible to calculate the div width by creating a variable which multiplies the post count in the shown category with the post width. But how?Any ideas? There’s a test site up at https://www.fhoto.se/nytest
Would really appreciate help/advice/ideas! Thanks!
Fred
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Calculate div width from post count?’ is closed to new replies.